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
24. What is the expected result of the following code? def velocity(x): return speed + x speed = 0 new_speed = velocity
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am