Python Tutorial for Beginners 8 – Python Slices or Slicing

///Python Tutorial for Beginners 8 – Python Slices or Slicing

Python Tutorial for Beginners 8 – Python Slices or Slicing

FavoriteLoadingAdd to favorites

– Python Slices
python tutorial for beginners pdf
python tutorial for beginners with examples
best python tutorial for beginners
python tutorial for beginners ppt
python tutorial for beginners video
basic python tutorial for beginners
learn python tutorial
Verwandte Suchanfragen zu python slices
python string multiple lines
python slice list
python string slice
python länge einer liste
python multiple assignment
python string to tuple
python string abschneiden
python compare tuples

By |2017-05-01T12:21:05+00:00April 26th, 2017|Programming Video Tutorials, Python Video Tutorials|19 Comments


  1. JamesJ30t April 26, 2017 at 9:27 pm - Reply

    In the slices names[x:y]  it looks like the x starts from 0 and the y starts from 1.   That’s inconsistent.

  2. naveen suggala April 26, 2017 at 9:30 pm - Reply

    do not take the same index and values in the my list .
    if you take different values then people can understand easily

  3. Brian Garrison April 26, 2017 at 9:30 pm - Reply

    on the slicing on the mylist[] wanting to show 5 thru 9 .. you suggested using mylist[5:10]……. why not use mylist[5:]
    It shows the same output.

  4. Juquinha April 26, 2017 at 9:34 pm - Reply

    4:56 it didnt skip the 3rd value. C is the third value and it was printed.

  5. Wesley Simpson April 26, 2017 at 9:35 pm - Reply

    Thank you for these videos. I’ve learned so much

  6. Juquinha April 26, 2017 at 9:36 pm - Reply

    you didnt add one more to the last value (9) 10 is the 10th position that corresponds to list number 9 because the 1st position is list number 0.

  7. Sofía Childress April 26, 2017 at 9:41 pm - Reply

    thank you formaking these! they are such a great help!!!!!! 🙂

  8. Juquinha April 26, 2017 at 9:43 pm - Reply

    you are making some confusion my friend with numbers and idexes. In the first example, for instance, [4:8] 4 here correspond to the fourth position which is number 3..for some reazon it skipes the first index number asked and prints the next one in this case number 4 corresponding to the 5th index position and it goes until the 8th position in which displays the number 7. when You’ve created by the next mylist index [5:10] this 10 does not reffer to the number 10 that might come after the number 9 on the list but 10 here is the 10th position that belongs to list number 9. number 0 holds the 1st position.

  9. Thuy Vuong April 26, 2017 at 9:45 pm - Reply

    At 6:56 in the video myList [-4:-2], why does it not print 8 and skips to print 7, but then it goes back and prints out 6 and doesn’t print 7 again instead. Because it seems that it skipped -2 first to print 7, but it doesn’t skip -4 and prints 6?

    Does anyone have an explanation for this?

  10. inquisitive April 26, 2017 at 9:51 pm - Reply

    modi modi modi😁

  11. sanjukta ghosh April 26, 2017 at 9:52 pm - Reply

    loved ur videos, thankyou so much

  12. himanshu singh nagarkoti April 26, 2017 at 9:53 pm - Reply

    i think in case of [-4:-2]it will first goes to -4 from the end and then print diff of given no value i.e(in this case it will print 2 values as 4-2=2 )starting from -4 value.

  13. jitendra kumar April 26, 2017 at 9:54 pm - Reply

    how to use slice in a list containing [0,1,2,3,4].Here I want tp print only 4 using slicing.How is it possible can any one help on this.

  14. saurabh bhathiza April 26, 2017 at 10:02 pm - Reply

    sir, can u please explain the concept of 6:54, i am not able to get that.

  15. Feiling Yang April 26, 2017 at 10:09 pm - Reply

    Your videos really help me a lot since I am a true beginner.

  16. sunil dingankar April 26, 2017 at 10:09 pm - Reply

    While using my list [0: :3], it doesn’t skip, but it prints the 3rd value. It skips 2 values and print 3rd. Your videos are too helpful in understanding python. Thank you so much.

  17. Deepak Sharma April 26, 2017 at 10:18 pm - Reply

    your videos are truly very good.i have learned a lot of much from it

  18. Abhinav Poulsen April 26, 2017 at 10:18 pm - Reply

    he is wrong in saying this " : " –> semi colon ,,, observe it..!!

  19. Misbah Qureshi April 26, 2017 at 10:19 pm - Reply

    tw ? xD is he Indian or Pakistani ?

Leave A Comment