Home /
Expert Answers /
Computer Science /
programming-in-python-create-a-python-file-that-demonstrates-the-basic-elements-of-double-selection-pa328
(Solved): Programming in python Create a Python file that demonstrates the basic elements of double selection ...
Programming in python
Create a Python file that demonstrates the basic elements of double selection using a Python if...else statement. STEP 1: Use the input function to prompt a user to type a y (lowercase). Save the response in a variable named reply. STEP 2: Use a python if...else structure to check if the reply is ' y '. If the reply is ' y ', print a message saying the reply received was yes. Print a message saying the reply received was invalid for all other responses. Remember that the variable will be a string variable, so the condition will need double- or single-quotes.