Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image

image

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Computing And Programming In Python A Multimedia Approach

Authors: Mark J. Guzdial, Barbara Ericson

4th Edition

0134025547, 978-0134025544

More Books

Students also viewed these Programming questions