Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #FirstProj
  2.  
  3. def run(string, index):
  4. print(string)
  5. print(index)
  6. print(string)
  7. print(string[:index])
  8. print(string[index:])
  9. return()
  10.  
  11. import FirstProj
  12.  
  13. str = 'The lazy brown fox'
  14. index = 6
  15. myList = Proj07Runner.run(str,index)
  16. print(str)
  17. for item in myList:
  18. print(item)
  19.  
  20. The lazy brown fox
  21. 6
  22. The lazy brown fox
  23. The la
  24. azy brown fox
  25.  
  26. The lazy brown fox
  27. 6
  28. The lazy brown fox
  29. The la
  30. zy brown fox
  31. The lazy brown fox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement