Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- poem = ["Have we not known, nor heard, nor read",
- "How God does hate deceit and wrong?",
- "How Ananias was struck dead,",
- "Caught with a lie upon his tongue?"]
- def display_haiku():
- for line in poem:
- print(line)
- display_haiku()
- def triangle_area():
- height = float(input('Enter the height of the triangle: '))
- base = float(input('Enter the base of the triangle: '))
- area = 1/2 * height * base
- print('The area of the triangle is:',area)
- triangle_area()
- import random
- def heads_or_tails():
- r =random.randint(0,1)
- if r == 0:
- print('heads')
- if r == 1:
- print('tails')
- heads_or_tails()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement