Answer:
When you dont know how long the loop is going to run for
Explanation:
Answer: natural Language Processing
Explanation:
Natural Language Processing: It is a sub field of linguistics which is concerned with the interactions between Human and computer especially how to program computers to process and to understand large amounts of natural language data.
Answer:
Option b if month in ["May", "June", "July", "August"] and not num_finals:
Explanation:
The if statement in the option b doesn't meet the objective to check if num_finals is zero. It just use a not operator which is not relevant here. The num_finals is an integer and therefore to check if num_finals is zero, the correct statement should be num_finals == 0 The "==" is an equality operator to check if a left value is equal to the right value. The rest of the three options are correct as they meet the checking requirements.
Answer:
Selection control structure
Explanation:
This is often referred to as if-conditional statement;
This condition tests for a condition and performs a sequence of operation depending on the result of the condition;
Take for instance, the following program written in python
<em>x = int(input("enter any number: "))</em>
<em>if x < 0:</em>
<em> print("Yes")</em>
<em>else</em>
<em> print("No")</em>
<em />
The above checks if the input number is less than 0,
If the condition is true, it prints Yes
If otherwise, it prints No