Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Even numbers to 20
- for x in range(21):
- if x % 2 == 0:
- print(x)
- #100 squares
- x = 1
- while x < 101:
- print("The square of " + str(x) + " is " + str(x ** 2))
- x = x + 1
- #Counting down from 100
- for x in range(100):
- print(100 - x)
Advertisement
Add Comment
Please, Sign In to add comment