I am making a text Russian game of roulette in Python, but I almost did not finish, as you can see, just by looking at my code:
#!/usr/bin/env python print("The maximum number of bullets is 3") bulletcounter = input("How many bullets do you want your gun to have?") print(bulletcounter, "bullets") paname = input("Enter Player 1 Name: ") pbname = input("Enter Player 2 Name: ") print(paname.capitalize(), "Vs.", pbname.capitalize()) if bulletcounter == 1: bulletcount = 0 print(bulletcount) bulletaloc = random.randint(1, 6) while bulletaloc != bulletcount: bulletcount += 1
For some reason, even if someone enters 1 into a bulletcounter, it does not run the if statement "if bulletcounter == 1". How to make it run if-statment
source share