repl.it
Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


answer="mobile"
attempts=2
guess="dfdfdf"
while guess != answer or attempts != 0:
  #guess = input("Please guess the answer:")
  print (guess)
  input()
  if guess==answer:
    print("You Won")
  #else:
   # attempts=attempts-1
    #print("Wrong, you have",attempts,"attempts left")
Fetching token
?