Petiasla

Cards

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