school

thing1's amazing school repo
Log | Files | Refs | Submodules | README

famous.py (723B)


      1 name = ["tux", "wibler", "rms"]
      2 clue1 = ["its a penguin", "it likes art", "what your refering to..."]
      3 clue2 = ["it could have been a furry", "its a dog", "...as linux, is accutally gnu/linux"]
      4 
      5 score = 0
      6 
      7 for x in range(3):
      8     print(clue1[x])
      9     guess = input("who do you think it is? ")
     10     if guess == name[x]:
     11         print("you got it!")
     12         score = score + 5
     13     else:
     14         print(clue2[x])
     15         guess = input("who do you think it is now? ")
     16         if guess == name[x]:
     17             print("well done, you got it that time!")
     18             score = score + 2
     19         else:
     20             print("sorry that was wrong")
     21             print("it was,", name[x])
     22     print("\n\n\n")
     23 
     24 print("you got,", score, "points")
     25 
     26