Python Programming Tutorial – 4 – Slicing up Strings

///Python Programming Tutorial – 4 – Slicing up Strings

Python Programming Tutorial – 4 – Slicing up Strings

FavoriteLoadingAdd to favorites

Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

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

49 Comments

  1. Eddy Avila April 26, 2017 at 9:19 pm - Reply

    I’m in Case Study coffee in downtown PDX, and just giggled like a school girl at "Difickleisscastiff." Goddamn, Bucky. Keep up the solid work, sir!

  2. utkarsh Lodha April 26, 2017 at 9:19 pm - Reply

    hey bucky! i want to buy a pc screen ,can u suggest me which size should i buy for programming
    hope u reply soon

  3. Giulio Mario Martena April 26, 2017 at 9:21 pm - Reply

    Does anybody know how can I print a string in a loop without it going on a new line?

  4. Алекс Сапс April 26, 2017 at 9:22 pm - Reply

    Thank for your cool guides!

  5. sunny mallik April 26, 2017 at 9:22 pm - Reply

    Okay, initially you said computer starts from 0. Hence user(0)=T, Similarly user(5)=M , since we also count the blank space as a character. All good here. Now at the end of the video how length of the character becomes 11, it should be 10 accordingly

  6. gbenga lanre April 26, 2017 at 9:23 pm - Reply

    thanks bro

  7. PapiDimmi April 26, 2017 at 9:26 pm - Reply

    What is it with you and tuna?

  8. Jonathan SumAKAGoogleSearch-arma2oa April 26, 2017 at 9:26 pm - Reply

    I am done with TreeHouse. Their tutorial are really suck.

  9. Eurodollar tv April 26, 2017 at 9:26 pm - Reply

    does anybody know how to get the double () and [ ] the way he does it in the video without tying it one by one?

  10. Bisi Oninole April 26, 2017 at 9:32 pm - Reply

    I wanted to know if each episode I’m suppose to try and practice it multiple times

  11. chris mahn April 26, 2017 at 9:33 pm - Reply

    hi bucky any idea how i can clear idle3 shell?

  12. Mark Pataki April 26, 2017 at 9:34 pm - Reply

    "Just keep that in mind because it’s gonna come into play right now" (0:38)

    I spat my coffee out from laughing at that part

  13. Shaik Imthiyaz April 26, 2017 at 9:35 pm - Reply

    what if string has 3 words and i wanted to print word 1 and 3 in same line ?

  14. Tomáš Růžička April 26, 2017 at 9:36 pm - Reply

    The line of the day: Computers are different. 😀

  15. Reza Ariyan April 26, 2017 at 9:36 pm - Reply

    OH MY GOD , you are awesome man

  16. Odi Mbeledogu April 26, 2017 at 9:39 pm - Reply

    I really wish you had zoomed in….i’m struggling to see what is between ‘user’ & "Tuna McFish"

  17. Thales Targueta April 26, 2017 at 9:39 pm - Reply

    Can someone help me with this error?
    Traceback (most recent call last):
    File "<pyshell#4>", line 1, in <module>
    ien(user)
    NameError: name ‘ien’ is not defined

    Thanks in advance

  18. daddeo01905 April 26, 2017 at 9:39 pm - Reply

    You should have maximized the window, it is too small to read.

  19. GYT April 26, 2017 at 9:41 pm - Reply

    best channel

  20. Phantomx79 April 26, 2017 at 9:41 pm - Reply

    Could you explain the step portion of slicing? [start:stop:step]

  21. Dutty. JG April 26, 2017 at 9:42 pm - Reply

    IAM GOING TO WATCH ALL 56 VIDEOS THANK YOU SO  MUCH FOR THIS…….THIS IS SO HELPFULL       print(" thank you")  lol

  22. Jakub Kocyan April 26, 2017 at 9:46 pm - Reply

    Very well put together. I have tried other Python learning sources and this is my favorite. Thank you for the content. This is useful to many people. 🙂

  23. Aj kak April 26, 2017 at 9:46 pm - Reply

    Suppose, may I know, how we can print Stirng with Alphabetical order.

  24. BigBang1112tm April 26, 2017 at 9:47 pm - Reply

    this is soo simple and soo effective comparing to other languages

  25. Scarlet Stark April 26, 2017 at 9:49 pm - Reply

    lol udePics

  26. Hamid Abdanan April 26, 2017 at 9:50 pm - Reply

    Thank you for this free tutorial. So far, the most organized and easy to understand videos on Python. I am an old fart and love this tutorial. I your first video, I liked you saying "you can use python to make this crab right here".

  27. Арип Магомедов April 26, 2017 at 9:50 pm - Reply

    Hey, Bucky your tuts are great and your humour is awesome! XD just keep going!

  28. Sunny Sun April 26, 2017 at 9:51 pm - Reply

    thank you very much for sharing. it’s very useful. 🙂

  29. Corwin Verhoek April 26, 2017 at 9:53 pm - Reply

    You’re favorite team is the Pittsburgh Penguins!

  30. Ahmad Habib April 26, 2017 at 9:54 pm - Reply

    your website is down.. :3

  31. Karimo Abdullahi April 26, 2017 at 9:54 pm - Reply

    100* easier than java I’m gonna teach myself and used it instead of java 🙂

  32. cedrick innocent April 26, 2017 at 9:54 pm - Reply

    Hey bro, is there anyway I can contact you? I see you’re twitter hasn’t been in use for a while.

  33. Try Me April 26, 2017 at 9:54 pm - Reply

    when you do user[5] and get m what is that used for? what can you do with that?

  34. Kashyap Sigdel April 26, 2017 at 9:56 pm - Reply

    Gotta empty the recycle bin, bro. My OCD is killing me!

  35. areeb durani April 26, 2017 at 9:58 pm - Reply

    Love your teaching method. Keep it up (Y)

  36. Andrew Dong April 26, 2017 at 9:59 pm - Reply

    Bucky is awsome, and an adorable man…

  37. Yahor April 26, 2017 at 10:00 pm - Reply

    you forgot about increament thats looks like user[::2] or use[0::3] or user[0:-2:2] that means display each 2, 3 and 2 respectively

  38. IdoShvarts April 26, 2017 at 10:00 pm - Reply

    4:28 lol

  39. Ron Kosova April 26, 2017 at 10:02 pm - Reply

    Holy sh*t this is so much easier than Java. I’ve been learning Java for about 3 months now and it’s so hard.

  40. gimpyjosh April 26, 2017 at 10:02 pm - Reply

    Thank you so much thenewboston. You are so awesome at explaining ideas in very easy to understand ways.

  41. A Human April 26, 2017 at 10:02 pm - Reply

    Edit: [SOLVED] The solution is [-4:]
    Ok thanks for the video but I have a question that I specifically came here for:

    Let’s say we have a list:

    my_list = [‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’, ‘g’, ‘h’]

    How do I move a few steps backwards. Say I want to start at ‘h’ and go back to ‘e’.

    I have tried [-1:-4] but it doesn’t work.

    Any help?

    kind regards

  42. Bergamoism April 26, 2017 at 10:04 pm - Reply

    +thenewboston
    what if I have an email and I just want the first part without the @ symbol and the domain name?

  43. tylertyler82 April 26, 2017 at 10:07 pm - Reply

    can’t see a thing in the window, even at full screen on a 27" display (it’s all blurry) how about record just the window instead of your entire desktop??

  44. Wahid Hamidy April 26, 2017 at 10:10 pm - Reply

    oOh man i love the way you teach, the best thing that i like about your tutorials, you explain the basics as nice as possible, thank you

  45. Nicholas Pratt April 26, 2017 at 10:13 pm - Reply

    You sound like Johnny Knoxville, and that’s a bloody fantastic thing!

  46. Satyajeet Deshmukh April 26, 2017 at 10:13 pm - Reply

    why didn’t he just focus the screen recorder on his windows

  47. Nicholas Yamamoto April 26, 2017 at 10:14 pm - Reply

    I have a question for anyone reading. Does this same concept of iterating through the string using the : work with arrays?
    Since you treat the string as an array of characters, which is essentially what a string is, this [2:5] thing to display all characters from index 2 to index 5 astonishes me, as in C++ in order to print out individual characters in a string you’d have to have a loop to iterate through. That being said, does this same concept apply with any array? Like, if I wanted to display only the 30th – 45th elements in a 100 element array of doubles all I’d need to do is write user[29:44]?

    Thank you for anyone reading! I hope what I asked makes sense.

  48. Hagamaga April 26, 2017 at 10:16 pm - Reply

    you can barely see what he’s typing… very disappointed the font wasn’t enlarged for better understanding

  49. PapiDimmi April 26, 2017 at 10:17 pm - Reply

    What did you say in the beginning?

Leave A Comment

*