Conditinols in python codehs Exam | Questions with Correct
Answers| Verified
4.1.4: Fix This Program - Answer brought_food = True
brought_drink = False
print(brought_food)
print(brought_drink)
# These lines don't work! Fix them so that they do.
print(type ("Did the person bring food? " + str(brought_food)))
print(type ("Did the person bring a drink? " + str(brought_drink)))
4.1.5: Plants - Answer needs_water = True
needs_to_be_repotted = False
print("Needs water: " + str(needs_water))
print (str(needs_to_be_repotted))
print(needs_water)
4.2.5: Fix This Program - Answer can_juggle = True
# The code below has problems. See if
# you can fix them!
if can_juggle:
print("I can juggle!")
else:
print("I can't juggle.")
4.2.6: Is It Raining? - Answer
4.3.6: Old Enough to Vote? - Answer your_age = int(input("How old are you?: "))
Answers| Verified
4.1.4: Fix This Program - Answer brought_food = True
brought_drink = False
print(brought_food)
print(brought_drink)
# These lines don't work! Fix them so that they do.
print(type ("Did the person bring food? " + str(brought_food)))
print(type ("Did the person bring a drink? " + str(brought_drink)))
4.1.5: Plants - Answer needs_water = True
needs_to_be_repotted = False
print("Needs water: " + str(needs_water))
print (str(needs_to_be_repotted))
print(needs_water)
4.2.5: Fix This Program - Answer can_juggle = True
# The code below has problems. See if
# you can fix them!
if can_juggle:
print("I can juggle!")
else:
print("I can't juggle.")
4.2.6: Is It Raining? - Answer
4.3.6: Old Enough to Vote? - Answer your_age = int(input("How old are you?: "))