Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question
#2
First, pls use Python tags to post code, makes is a lot easier to see what is going on.

Change your print statement to
chc = choice(deck)
print (f"{chc.rank} of {chc.suit}")
Reply


Messages In This Thread
Question - by pythonprogrammer - Oct-02-2019, 12:09 AM
RE: Question - by jefsummers - Oct-02-2019, 12:58 AM
RE: Question - by pythonprogrammer - Oct-02-2019, 01:59 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020