Course Solutions Uncategorized (Solved) : Following Statement Determines Whether Reply Equal Y Y Reply Input Y Y Continue Reply Y Re Q35685111 . . . .

(Solved) : Following Statement Determines Whether Reply Equal Y Y Reply Input Y Y Continue Reply Y Re Q35685111 . . . .

 

The following if statement determines whether reply is equal to‘Y’ or ‘y’:

  1. reply = input(“Y or y to continue: “)

    if reply == “Y” and reply == “y”:

       print(“Y — <uppercase> has beenselected. “)

    else:

       print(“y — <lowercase> has beenchosen. “)

    print(“… continue running this program …”)

  2. Rewrite this statement in python so it onlymakes one comparison and does not use the or operator. (Hint: useeither the upper or lower methods.)

  3. Write a loop that asks the user “Do you want to repeat theprogram or quit? <R/Q> “. The loop should repeat until theuser has entered an R or Q (either uppercase or lowercase)

Expert

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Please Help Solve Note Needs Done Notepad Able Compile Run Command Prompt Steps 1 Create S Q34314360 . . . .(Solved) : Please Help Solve Note Needs Done Notepad Able Compile Run Command Prompt Steps 1 Create S Q34314360 . . . .

<p>Please help solve this!</p><p><strong>***Note</strong><strong>: Needs to be done on Notepadand be able to compile and run on commandprompt</strong><strong>***</strong></p><p>Here are the steps.</p><p><strong>(1)</strong> Create a Student class containing an ID, alast name,