Computer Science

If the user inputs : 2<ENTER>, what does the following code snippet print?

x = float(input())
if(x==1):
   print("Yes")
elif (x >= 2):
   print("Maybe")
else:
   print ("No")
  1. Yes
  2. No
  3. Maybe
  4. Nothing is printed
  5. Error

Python Control Flow

33 Likes

Answer

Maybe

Answered By

12 Likes


Related Questions