Do not do this in range(100). The loop fordoes not offer a way to skip this; timethe next value in the list will be set, regardless of what you change it to in the body of the loop. Use a loop instead while, for example
time = 0
while time < 100:
gold += level
if gold > 20 * level:
level +=1
time += 10
time += 1
source
share