Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- story = "Twas brillig and the slithy toves\ndid gyre and gymbol in the wabe\nall mimsy were the borogroves\nand the mome wraths outgrabe"
- print(story)
- print(len(story))
- print(story.upper())
- print(story[7])
- print(story.replace("the","ye"))
- ages = [12, 19, 21, 48, 43, 83]
- newages = []
- for age in ages:
- print(age, "becomes", age + 1)
- newages.append(age+1)
- print(ages)
- print(newages)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement