Question: done = False factor = 0 . 0 while not done : getSecond = True command = input ( From unit ( in ,

done = False
factor =0.0
while not done :
getSecond = True
command = input("From unit (in, cm, m, again, quit): ")
print()
if command =="in" :
factor =2.54
unit1= command
elif command =="cm" :
# Your code goes here
elif command =="m" :
# Your code goes here
elif command == "again" :
getSecond = False
elif command == "quit" :
done = True
getSecond = False
else :
print("Sorry, unknown unit.")
getSecond = False
if getSecond :
unit2= input("To unit: ")
print()
if unit2=="in" :
factor = factor /2.54
elif # Your code goes here
elif # Your code goes here
print("Sorry, unknown unit.")
# Your code goes here
if not done and factor !=0.0 :
value = float(input("Enter the value to be converted: "))
print()
print(value, unit1,"=", value * factor, unit2)

Step by Step Solution

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 Databases Questions!