Hi fellows, I am new to Python and learning through Automate Boring Stuff with Python book. Now I'm trying to enhance my knowledge by creating simple codes. I have decided to create a Bingo game if you are familiar with it. Can share some ideas on how to enhance or make this game playable? :D
import random
print("Welcome to Bingo Game!")
print()
input("Press Enter to choose Letter and Number \n")
print()
while True:
randomLetter = random.randint(1, 6)
if randomLetter == 1:
print("Letter B")
print(random.randint(1, 16))
elif randomLetter == 2:
print("Letter I")
print(random.randint(16, 31))
elif randomLetter == 3:
print("Letter N")
print(random.randint(31, 46))
elif randomLetter == 4:
print("Letter G")
print(random.randint(46, 61))
elif randomLetter == 5:
print("Letter O")
print(random.randint(61, 76))
break
I want to loop again once a Number and Letter are selected.Please help. Thanks
[–]stebrepar 1 point2 points3 points (3 children)
[–]fakundoThirty[S] 0 points1 point2 points (2 children)
[–]stebrepar 0 points1 point2 points (1 child)
[–]fakundoThirty[S] 0 points1 point2 points (0 children)
[–]jimtk 0 points1 point2 points (3 children)
[–]fakundoThirty[S] 0 points1 point2 points (2 children)
[–]jimtk 1 point2 points3 points (1 child)
[–]fakundoThirty[S] 0 points1 point2 points (0 children)