Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- weather = input()
- if weather == 'sunny':
- print('It\'s warm outside!')
- else:
- print('It\'s cold outside!')
- Второ решение:
- weather = 'cold'
- if input() == 'sunny':
- weather = 'warm'
- print(f'It\'s {weather} outside!')
- Taрикатско решение:)
- print('It\'s warm outside!' if input() == 'sunny' else 'It\'s cold outside!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement