Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = input()
- list1 = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']
- for cards in list1:
- if cards != num:
- print(f'{cards} of spades, {cards} of clubs, {cards} of hearts, {cards} of diamonds')
- else:
- print(f'{num} of spades, {num} of clubs, {num} of hearts, {num} of diamonds')
- break
Advertisement
Add Comment
Please, Sign In to add comment