2020-05-27 12:52:04 +00:00
|
|
|
people = 21
|
|
|
|
cars = 15
|
|
|
|
trucks = 30
|
|
|
|
|
2020-05-27 13:03:11 +00:00
|
|
|
if cars > people: #check cars are bigger than people
|
|
|
|
print("We should take the cars.") #print if cars are bigger than people
|
|
|
|
elif cars < people: #check cars are smaller than people
|
|
|
|
print("We should not take the cars.") #print if cars are smaller than people
|
2020-05-27 12:52:04 +00:00
|
|
|
else:
|
2020-05-27 13:03:11 +00:00
|
|
|
print("We can't decide.") #print if cars are same with people
|
2020-05-27 12:52:04 +00:00
|
|
|
|
|
|
|
|
2020-05-27 13:03:11 +00:00
|
|
|
if trucks > cars: #check trucks are bigger than cars
|
|
|
|
print("That's too many trucks.") #print if trucks are bigger than cars
|
|
|
|
elif trucks < cars: #check trucks are smaller than cars
|
|
|
|
print("Maybe we could take the trucks.") #print if trucks are smaller than cars
|
2020-05-27 12:52:04 +00:00
|
|
|
else:
|
2020-05-27 13:03:11 +00:00
|
|
|
print("We still can't decide.") #print if trucks are same with cars
|
|
|
|
|
|
|
|
if people > trucks: #check people are bigger than trucks
|
|
|
|
print("Alright, let's just take the trucks.") #print if people are bigger than trucks
|
2020-05-27 12:52:04 +00:00
|
|
|
else:
|
2020-05-27 13:03:11 +00:00
|
|
|
print("Fine, let's stay home then.") #print if people are bigger than trucks
|
2020-05-27 12:52:04 +00:00
|
|
|
|
2020-05-27 13:03:11 +00:00
|
|
|
if cars > people or trucks < cars: #check cars are bigger than people or trucks are smaller than cars
|
|
|
|
print("cars are many") #print if cars are bigger than people or trucks are smaller than cars
|
2020-05-27 12:52:04 +00:00
|
|
|
else:
|
2020-05-27 13:03:11 +00:00
|
|
|
print("trucks or people is bigger") #print not (cars > people or trucks < cars)
|