Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FirstProj
- def run(string, index):
- print(string)
- print(index)
- print(string)
- print(string[:index])
- print(string[index:])
- return()
- import FirstProj
- str = 'The lazy brown fox'
- index = 6
- myList = Proj07Runner.run(str,index)
- print(str)
- for item in myList:
- print(item)
- The lazy brown fox
- 6
- The lazy brown fox
- The la
- azy brown fox
- The lazy brown fox
- 6
- The lazy brown fox
- The la
- zy brown fox
- The lazy brown fox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement