Play game
Memorytweet's itch.io pageHow many characters did you use?
278
Include your code here, if you'd like to show it off!
Find it in the comments!
Leave a comment
Log in with itch.io to leave a comment.
How many characters did you use?
278
Include your code here, if you'd like to show it off!
Find it in the comments!
Log in with itch.io to leave a comment.
Comments
import random, os
def c():os.system('cls')
def p(s):print(s)
n=''
i=0
p("Write")
while True:
s="Score "+str(i)
m=str(random.randint(0,9))
if(i!=0):p(s),p("At end add")
p(m)
n+=m
if input()!=n:
i=0
c()
p("Answer was "+n)
p(s)
p("Again")
n=''
else:
i+=1
c()