Question: What is wrong? #!/usr/bin/env python3 def convert_temp(scale=None, source_temp=None): if scale == F: return 'C', (source_temp - 32.0) * (5.0/9.0) elif scale == C: return 'F',

What is wrong? #!/usr/bin/env python3 def convert_temp(scale=None, source_temp=None): if scale == "F": return 'C', (source_temp - 32.0) * (5.0/9.0) elif scale == "C": return 'F', (source_temp * (9.0/5.0)) + 32.0 else: print("Needs to be (F) or (C)!") scale = input("Select (F) or (C): " ) source_temp = int(input("What is the temperature: " )) s, m = convert_temp(scale, source_temp) print(source_temp, "degrees", scale, "is", m, "degrees", s) I get file "...", line 12 in scale = inoput( "select For C:) "F or C is nmot defined

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!