Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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=-1
- c(),p("Answer was "+n),p(s),p("Again")
- n=''
- else:c()
- i+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement