Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.
- name = 'Oleg'
- my_wife = 'Nastia'
- my_daughter = 'Ameli'
- some_str = f'My name is {name}! I have a wife {my_wife} and a daughter {my_daughter}!'
- print(some_str)
- 2.
- for i in range(-50, 379):
- if i % 3 == 0 and i % 7 == 0:
- i = 'foobar'
- elif i % 3 == 0:
- i = 'foo'
- elif i % 7 == 0:
- i = 'bar'
- print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement