Advertisement
Spocoman

01. Jenny's Secret Message

Jan 13th, 2022
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. name = input()
  2. if name == 'Johnny':
  3.     print('Hello, my love!')
  4. else:
  5.     print(f'Hello, {name}!')
  6.  
  7.  
  8. Тарикатско решение:
  9.  
  10. name = input()
  11. print('Hello, my love!' if name == 'Johnny' else f'Hello, {name}!')
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement