Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is python. can anyone help me to correct the code if the answer is right then print (good job) and ends the loop else:

image text in transcribed
this is python.
can anyone help me to correct the code
if the answer is right then print ("good job") and ends the loop
else:
show (" try again") and countinue the question till gets correct answer.
and count how many time the person have tried
pls show me the correct code
main.py saved 1 print("Hello, World!") 2 person - input("Enter your name: ") 3 print('Hello', person,', Lets do some simple math) a=1 5 b-6 print("If you have 6 one dollar bills ") i- while i - e: Answer = input("How much do you have?") if int(Answer) - 6: print("Good Job!") Hello, World! Enter your name: 4. Hello 4, Lets do some simple math If you have 6 one dollar bills How much do you have? 35 ^ (0) * ENG T 10:18 2020/2/20

Step by Step Solution

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

Step: 3

blur-text-image

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

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

=+ (c) Show by example that f need not be constant.

Answered: 1 week ago

Question

Perform an Internet search. Discuss a company that uses EPLI.

Answered: 1 week ago

Question

How do you feel about employment-at-will policies? Are they fair?

Answered: 1 week ago