I want to be able to make a card and add it to a list of cards. The card has two variables, cardName
and cardNum
. I want to be able to assign both variables values in the same line using inputs from the user.
Code I used:
def Card():
cardName, cardNum = input('Card name : '), input(' : Card number : ')
card = f'{cardName} : {cardNum}/{cardsInSet} '
library.append(card)
What I want:
Card name : Spark Jump : Card number : 123
What I get when running my code:
Card name : 123
: Card number : 123