-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask1.py
More file actions
20 lines (16 loc) · 743 Bytes
/
Task1.py
File metadata and controls
20 lines (16 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if __name__ == '__main__':
print("Stop! Who would cross the Bridge of Death, Must answer me these questions three,"
"'ere the other side he see.")
name = input("Hello. Who are you? ").lower()
if "arthur" in name:
print("My liege! You may pass")
else:
grail = input("What do you seek?")
if "grail" or "GRAIL" or "Grail" in grail:
colour = input("What is your favourite colour?").lower()
if colour.lower().startswith(name[0]):
print("Okay you may pass.")
else:
print("Incorrect! You must now face the Forge of Eternal Peril. ")
else:
print("Only those who seek the Grail may pass.")