resenija
63.
for index in range(2):
while
wells[index].water_level < wells[index].max_water_level:
elephants[index].spray_at(wells[index])
64.
for index in range(len(wells)):
while wells[index].water_level < wells[index].max_water_level:
elephants[index].spray_at(wells[index])
65.
for index in range(len(wells)):
while wells[index].water_level < wells[index].max_water_level:
elephants[index].spray_at(wells[index])
66.
for index in range(len(wells)):
while wells[index].water_level < wells[index].max_water_level:
elephants[index].spray_at(wells[index])
67.
for obstacle in obstacles:
if obstacle.is_ice() and obstacle.is_on_ground():
dragon.fire_at(obstacle)
68.
for obstacle in obstacles:
if obstacle.is_ice() and
obstacle.is_on_ground():
dragon.fire_at(obstacle)
if obstacle.is_fence():
dragon.smash(obstacle)
69.
for obstacle in obstacles:
if obstacle.is_box() and obstacle.is_on_ground():
dragon.smash(obstacle)
70.
for obstacle in obstacles:
if obstacle.is_fence() and obstacle.is_on_ground():
dragon.smash(obstacle)
71.
for obstacle in obstacles:
if obstacle.is_box() or obstacle.is_fence():
dragon.smash(obstacle)
72.
for o in obstacles:
if o.is_fence() or o.is_box():
dragon.smash(o)
else:
dragon.fire_at(o)
73.
for obstacle in obstacles:
if obstacle.is_box() or obstacle.is_fence():
dragon.smash(obstacle)
74.
for obstacle in obstacles:
if obstacle.is_fence() or obstacle.is_box():
dragon.smash(obstacle)
if obstacle.is_ice() and obstacle.is_on_ground():
dragon.fire_at(obstacle)
75.
if not well.crocodile.mouth_closed:
well.crocodile.toggle()
while well.water_level <
well.max_water_level:
elephant.spray_at(well)
76.
for well in wells:
print(well.crocodile.mouth_closed)
if not well.crocodile.mouth_closed:
well.crocodile.toggle()
77.
for index in range(len(wells)):
if not wells[index].crocodile.mouth_closed:
wells[index].crocodile.toggle()
while wells[index].water_level < wells[index].max_water_level:
elephants[index].spray_at(wells[index])
78.
for obstacle in obstacles:
if not obstacle.is_on_ground() and obstacle.is_ice():
dragon.fire_at(obstacle)
79.
while well_1.water_level <
well_1.max_water_level:
elephant_2.spray_at(well_1)
while well_2.water_level <
well_2.max_water_level:
elephant_3.spray_at(well_2)
while well_3.water_level <
well_3.max_water_level:
elephant_1.spray_at(well_3)
80.
def fill_well(well, elephant):
while well.water_level < well.max_water_level:
elephant.spray_at(well)
fill_well(well_1, elephant_3)
fill_well(well_2, elephant_4)
fill_well(well_3, elephant_1)
fill_well(well_4, elephant_2)
81.
def fill_well(well, elephant):
while well.water_level < well.max_water_level:
elephant.spray_at(well)
fill_well(well_1, elephant_2)
fill_well(well_2, elephant_3)
fill_well(well_3, elephant_1)
82.
def fill_well(well, elephant):
while well.water_level < well.max_water_level:
elephant.spray_at(well)
fill_well(well_1, elephant_3)
fill_well(well_2, elephant_1)
fill_well(well_3, elephant_2)
83.
def fill_well(elephant, well):
while well.water_level < well.max_water_level:
elephant.spray_at(well)
fill_well(elephant_1, well_1)
fill_well(elephant_2, well_2)
fill_well(elephant_3, well_3)
fill_well(elephant_4, well_4)
84.
def fill_well(well, elephant):
while well.water_level < well.max_water_level:
elephant.spray_at(well)
if not well.crocodile.mouth_closed:
well.crocodile.toggle()
fill_well(wells[0], elephants[1])
fill_well(wells[1], elephants[3])
fill_well(wells[2], elephants[2])
fill_well(wells[3], elephants[0])
85.
def fill_well(well, elephant):
while well.water_level < well.max_water_level:
elephant.spray_at(well)
if not well.crocodile.mouth_closed:
well.crocodile.toggle()
fill_well(wells[0],elephants[0])
fill_well(wells[1],elephants[2])
fill_well(wells[2],elephants[3])
fill_well(wells[3],elephants[1])
86.
def handle_boxes(obstacle):
if obstacle.is_box():
dragon.smash(obstacle)
handle_boxes(obstacle_1)
handle_boxes(obstacle_2)
handle_boxes(obstacle_3)
handle_boxes(obstacle_4)
handle_boxes(obstacle_5)
handle_boxes(obstacle_6)
handle_boxes(obstacle_7)
87.
def handle_obstacle(obstacle):
if obstacle.is_box():
dragon.smash(obstacle)
else:
dragon.fire_at(obstacle)
handle_obstacle(obstacle_1)
handle_obstacle(obstacle_2)
handle_obstacle(obstacle_3)
handle_obstacle(obstacle_4)
handle_obstacle(obstacle_5)
handle_obstacle(obstacle_6)
Banana
Tales II
88.
class Drill:
def __init__(self):
self.x = 9
self.y = 13
def drill_right(self):
self.x = self.x + 2
drill_1 = Drill()
drill_1.drill_right()
89.
class Drill:
def __init__(self):
self.x = 2
self.y = 13
def drill_right(self):
self.x = self.x + 2
drill_1 = Drill()
drill_1.drill_right()
drill_1.drill_right()
90.
class Drill:
def __init__(self):
self.x = 6
self.y = 12
def drill_right(self):
self.x = self.x + 2
drill_1 = Drill()
for index in range(3):
drill_1.drill_right()
91.
class Drill:
def __init__(self, x, y):
self.x = x
self.y = y
def drill_right(self):
self.x = self.x + 2
drill_1 = Drill(3,10)
drill_2 = Drill(5,8)
drill_3 = Drill(7,12)
drill_4 = Drill(7,13)
drill_1.drill_right()
drill_2.drill_right()
for index in range(3):
drill_3.drill_right()
drill_4.drill_right()
92.
class Drill:
def __init__(self, x, y):
self.x = x
self.y = y
def drill_right(self, count):
self.x = self.x + count
drill_1 = Drill(2, 10)
drill_2 = Drill(2, 11)
drill_3 = Drill(10, 12)
drill_4 = Drill(10, 13)
drill_1.drill_right(4)
drill_2.drill_right(7)
drill_3.drill_right(3)
drill_4.drill_right(5)
93.
class Drill:
def __init__(self, x, y):
self.x = x
self.y = y
def drill_right(self, count):
self.x = self.x + count
drill_1 = Drill(1,13)
drill_2 = Drill(5,12)
drill_3 = Drill(9,11)
drill_4 = Drill(13,10)
drills = [drill_1, drill_2, drill_3,
drill_4]
for drill in drills:
drill.drill_right(4)
94.
snake.length = 2
95.
snake.length = 2
print("Type 'up' or 'down'")
answer = input()
if answer == 'up':
height = 11
else:
height = 4
giraffes[0].height = height
giraffes[1].height = height
96.
snake.length = 1
print("Type 'up' or 'down'")
# Check the input and set the height
accordingly.
if input() == 'down':
height = 3
else:
height = 7
for giraffe in giraffes:
giraffe.height = height
97.
snake.length = 1
answer = input("Type 'up', 'down' or
'middle': ")
if answer == 'up':
height = 8
elif answer == 'down':
height = 2
else:
height = 5
for giraffe in giraffes:
giraffe.height = height
98.
snake.length = 3
giraffe.height = int(input("Enter the
giraffes's height: "))
99.
snake.length = 2
for giraffe in giraffes:
giraffe.height = int(input("Enter the giraffe's height: "))
100.
snake.length = 2
index = int(input("Enter the snake's
index: "))
length = int(input("Enter the snake's
length: "))
snakes[index].length = length
101.
snake.length = 3
index = int(input("Enter the giraffes
index: "))
height = int(input("Enter the giraffes
height: "))
giraffes[index].height = height
102.
password = gate_3.code
print(password)
gate_3.open(password)
103.
password = gate_2.code + "abc"
gate_2.open(password)
104.
for gate in gates:
password = "ab" + gate.code + "yz"
gate.open(password)
105.
for gate in gates:
password = ""
for c in gate.code:
password = password + c + c
gate.open(password)
Comments
Post a Comment