Question: Fix code in Python answer = str(input( Do you love me? )) if answer= no : print( Are you sure?, Try it again ) elif

Fix code in Python

answer = str(input( Do you love me? )) if answer= no :

print( Are you sure?, Try it again ) elif answer != str:

answer = str(input( Do you love me? )) if answer= no : print( Are you sure?, Try it again ) elif answer != str: print( numbers not allowed ) Gelse: print( Great! ) exit() Do you love me?yes numbers not allowed

Step by Step Solution

3.45 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!