Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
roulette game
#4
I think the lists and some comparisons can be gotten rid of.

if number % 2 == 0:
    print("Number is even and number is black")
else:
    print("Number is odd and number is red")
Reply


Messages In This Thread
roulette game - by atux_null - Oct-28-2017, 12:03 AM
RE: roulette game - by heiner55 - Oct-28-2017, 06:26 AM
RE: roulette game - by atux_null - Oct-28-2017, 05:59 PM
RE: roulette game - by james - Oct-28-2017, 06:21 PM
RE: roulette game - by heiner55 - Oct-29-2017, 05:49 AM
RE: roulette game - by atux_null - Oct-29-2017, 08:59 AM
RE: roulette game - by heiner55 - Oct-31-2017, 08:45 AM

Forum Jump:

User Panel Messages

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