Question: a) Identify all errors in the Python scripts below and correct them def ageindays(a): return float(a)*365.25 x = raw_input(How old are you in years? )

a) Identify all errors in the Python scripts below and correct them

def ageindays(a):
 return float(a)*365.25
x = raw_input("How old are you in years? ")
print ageindays()

B) Identify all errors in the Python script below and correct them

q = 1
while q > 0:
 q = 3*q -1
 print q

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!