-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathex37.py
More file actions
62 lines (52 loc) · 1.21 KB
/
ex37.py
File metadata and controls
62 lines (52 loc) · 1.21 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from math import fabs
dogs = False
plants = True
temple = "mysterious"
message = "Help I'm trapped in the temple"
shouts = 3
animals = ["spiders", "tigers", "blobfish"]
snakes = {
"Boa Constrictor": "Not poisonous",
"eyebrow viper": "Poisonous",
"cool snake": "EXTREME poisone"
}
python_bit = 'print("blabbo")'
def scream():
return "AAAAAAAAAAAAHHHHHHHHHHH"
class garbage(object):
def __init__(self):
self.blue = "My favorite fruity"
def fav(self):
print(blue)
global three
matho = fabs(-9)
exec python_bit
if(dogs == False):
print("No dogs here!")
print(matho)
elif(not dogs or plants == False):
print("This will never run")
else:
print("A big boy approaches!")
for a in animals:
assert plants
if(a is "spiders"):
print(scream())
del snakes["cool snake"]
print(snakes)
elif(a is "tigers"):
pass
elif(a is "blobfish"):
try:
print(message)
except:
raise ValueError("No")
finally:
print("no matter what, this runs")
while shouts < 7:
print(shouts)
shouts += 1
if shouts == 5:
break
continue
print("this shouldn't show up")