Answer:
def recursive_func():
x = input("Are we there yet?")
if x.casefold() == 'Yes'.casefold():
return
else:
recursive_func()
recursive_func()
Explanation:
We define the required function as recursive_func().
The first line takes user input. The user input is stored in variable x.
The next line compares the user input to a string yes. The function executes the else block if the condition isn't met, that is a recursive call is executed.
IF condition returns the function. The string in variable X is compared to a string 'Yes'. the casefold() is a string function that ignores the upper/lower cases when comparing two strings. (This is important because a string 'yes' is not the same yes a string 'Yes' or 'YES'. Two equal strings means their cases and length should match).
Answer:
Output:
Income is greater than 3000
Explanation:
In conditional statements, either the if statement is processed or the else if.
In this scenario, both the given conditions fit for the given output but when if block will be processed, the else if block will be skipped by default.
So the output will only be the out phrase of if block which is:
Income is greater than 3000.
Answer:
be creative
Explanation:
being creative helps you and our time brainstorm some good ideas that will help you succeed and allow your team mates to have a voice too if you follow these you will be a good team leader
i dont know if if this the answer that your looking for but i hope it help
Answer:
By using the code given above, the answers for each question is as follows:
1. B & D
2. C
3. B & D
4. x >= 5
Hope it helps