24. What is the expected result of the following code? def velocity(x): return speed + x speed = 0 new_speed = velocity
Posted: Sun Jul 10, 2022 11:27 am
24. What is the expected result of the following code?
def velocity(x):
return speed + x
speed = 0
new_speed = velocity (10)
new_speed = velocity (new_speed)
print (new_speed)
a. code is erroneous and cannot be run.
b. 20
c. 10
d. 30
def velocity(x):
return speed + x
speed = 0
new_speed = velocity (10)
new_speed = velocity (new_speed)
print (new_speed)
a. code is erroneous and cannot be run.
b. 20
c. 10
d. 30