+ 2
How do i split inputs on my code?
3 Answers
0
You had the code off by far so I re-wrote it for you
import random
answer=random.randint(1,100)
while True:
guess=int(input(''))
a=0;
if guess > answer:
print("Nope Too High")
a+=1;
elif guess < answer:
print("Nope Too Low")
a+=1
elif guess==answer:
print("You Win, The Number Was " + answer + " And You Got It In Only " + a + " Tries ")
0
Mimita
- 2
Because you have the indenting all messed up