-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex36.py
More file actions
39 lines (33 loc) · 990 Bytes
/
ex36.py
File metadata and controls
39 lines (33 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
def story():
print("Welcome AHYA!")
print("""Your name is AHYA
You're a warrior, in a merciless world
your purpose is protect your village
from the trolls, if you want to
make an end of trolls attack,
you must kill them.""")
def fight():
begin = input("Do you want to kill some trolls?:")
if begin.lower() == "y":
attack_form()
elif begin.lower() == "n":
print("A real fighter never give up!")
noob()
else:
quit()
def attack_form():
attack = input("Which fight form will you choose assa or curse?")
if attack == "assa":
print("The trolls dead.")
congratulation()
elif attack == "curse":
print("The curse is add more strength to the trolls, you died.")
noob()
else:
quit()
def congratulation():
print("You completed your purpose Congrat!! You're a real fighter!")
def noob():
print("do harakiri yourself you're not a real fighter you're a bunny!")
story()
fight()