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) : Following Set Points Describe Closest Pair Algorithm Finds Closest Pair Points 1 2 2 1 3 3 Q28824726 . . . .(Solved) : Following Set Points Describe Closest Pair Algorithm Finds Closest Pair Points 1 2 2 1 3 3 Q28824726 . . . .

<p>For the following set of points, describe how the CLOSEST-PAIRalgorithm finds a closest pair of points:</p><p>(1,2),(2,-1),(3,-3),(3,2),(-3,4),(-1,2),(2,3),(1,1),(-5,-2)</p> Expert Answer Answer to For the following set of points, describe how the