Need done in python, thanks. (5 points) This code is supposed to test an int variable ans for validity. The valid inputs are 1 through 9 inclusive. Which condition goes in the blank? highlight all...


Need done in python, thanks.




  1. (5 points) This code is supposed to test an int variable
    ans
    for validity. The valid inputs are 1


      through 9 inclusive.  Which condition goes in the blank?
highlight all answers that are correct.



                        ans = int(input("prompt"))


                        while _______________________________________


                                    print("you did not enter 1 through 9")


                                    ans = int(input("prompt"))




  1. ans >= 1 and ans <=>

  2. ans < 1="" or="" ans=""> 9

  3. ans not in [1,2,3,4,5,6,7,8,9]

  4. ans in "123456789"

  5. 1 <= ans=""><=>



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here