Question: Programming in python STEP 1: Create a new Python file. COPY the code from your Lab 01 file and paste it into this ne file.
STEP 1: Create a new Python file. COPY the code from your Lab 01 file and paste it into this ne file. STEP 2: Use a python if...elif...else structure to check the value of the user's reply. If the reply is ' y ', print a message saying the reply received was yes. If the reply is ' n ', print a message saying the reply received was no. Print a message saying the reply received was invalid for all other responses. SAMPLE OUTPUT 1: Type ' y ' for yes or ' n ' for no: y Your reply is yes. SAMPLE OUTPUT 2: Type ' y ' for yes or ' n ' for no: n Your reply is no. SAMPLE OUTPUT 3: Type ' y ' for yes or ' n ' for no: q Your reply is invalid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
