Advertisement
HBSB

3.3 iterable challenge

Mar 4th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. phrase="hello"
  2. phrase[0]
  3. phrase[0:4]
  4.  
  5. phrase[0]
  6. phrase[1]
  7. phrase[2]
  8. phrase[3]
  9. phrase[4]
  10.  
  11. phrase[1:4]
  12. phrase[:3]
  13. phrase[3:]
  14.  
  15. phrase="I_am_more_admiring_of_professional_programmers_even_at_this_early_stage."
  16. phrase[10:18]
  17. phrase[22:34]
  18. phrase[35:46]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement