Jump to content

Counting vol. 3


daredevil

Recommended Posts

import random
def counter(a=10):
    for i in range(1, 7000):
        a += random.randrange(1, 9, 1)
        if a == 6639:
            break
        elif a > 6639:
            break
    return a

x = 0
while x != 6639:
    x = counter()
    if x == 6639:
        print(x)
        break
  • 100 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.