diff options
author | standenboy <standenboy@seacrossedlovers.xyz> | 2023-12-15 10:19:20 +0000 |
---|---|---|
committer | standenboy <standenboy@seacrossedlovers.xyz> | 2023-12-15 10:19:20 +0000 |
commit | 4a95719d58a708ad55b1389631d6339047f786a0 (patch) | |
tree | 26cb6fc2dbe7fa75f57f1d6fb13aff8955772b56 /comp/work/7/famous.py |
added existing work
Diffstat (limited to 'comp/work/7/famous.py')
-rwxr-xr-x | comp/work/7/famous.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/comp/work/7/famous.py b/comp/work/7/famous.py new file mode 100755 index 0000000..7da792f --- /dev/null +++ b/comp/work/7/famous.py @@ -0,0 +1,26 @@ +name = ["tux", "wibler", "rms"] +clue1 = ["its a penguin", "it likes art", "what your refering to..."] +clue2 = ["it could have been a furry", "its a dog", "...as linux, is accutally gnu/linux"] + +score = 0 + +for x in range(3): + print(clue1[x]) + guess = input("who do you think it is? ") + if guess == name[x]: + print("you got it!") + score = score + 5 + else: + print(clue2[x]) + guess = input("who do you think it is now? ") + if guess == name[x]: + print("well done, you got it that time!") + score = score + 2 + else: + print("sorry that was wrong") + print("it was,", name[x]) + print("\n\n\n") + +print("you got,", score, "points") + + |