repl.it
@ChristopherRoch/

3.5 Exercise

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
card_type = input("What type of card? ")
card_num = input("What is the number? ")

if card_num == "ace":
  card_num = 10

if card_type == "club": yeet = "10"
elif card_type == "spade": yeet = "11"
elif card_type == "heart": yeet = "01"
elif card_type == "diamond": yeet = "00"



print(yeet + '{0:04b}'.format(int(card_num)))
?