This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The token is provided by the player as an input | |
token = eval(input("Enter Your Token Please: ")) # Evaluating the incoming value to its respective Data type | |
print(f"Tokens: {token}\n") | |
trackToken = token #assigning the tracking variable of token | |
counter = 0 #starting value --> 0 | |
#using whileloop | |
while counter < token: | |
trackToken = trackToken - 1 #subtracting the Token by 1 figure | |
print(f"| Playing, Chances Left: {trackToken} |") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Question? | |
# What we need to build? | |
# 2 tokens -> Play game 2x | |
# 5 tokens -> Play game 5x | |
# 6 tokens -> PLay game 6x | |
# 10 tokens -> Play game 10x | |
# This token we will be provided by user | |
token = eval(input("Enter Your Token Please: ")) # Evaluating the incoming value to its respective Data type |