Which Python command is an example of conditional logic?
- def
- delay
- if
- from
Explanation: The commands if and else are used for conditional logic. The commands for and while are used for repetition logic, and from is for module importing.
Exam with this question: IoT Connecting Things 2.0 – Chapter 3 Quiz Answers
Please login or Register to submit your answer