Conditions in python code HS questions and answers 100% Solved
Conditions in python code HS questions and answers 100% Solved 4.1.4: Fix This Program 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 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 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.")
Written for
- Institution
- Python code HS
- Course
- Python code HS
Document information
- Uploaded on
- May 28, 2024
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
conditions in python code hs
-
questions and answers 100 solved
Also available in package deal