0
Why is it showing none
force=180 mass=5 def acceleration_calculator(force,mass): acceleration = force/mass print("acceleration=",acceleration) print(acceleration_calculator(force,mas
3 odpowiedzi
+ 2
Adeniran Becoz to use it with print method it should return something
edited :-
force=180
mass=5
def acceleration_calculator(force,mass):
acceleration = force/mass
#print("acceleration=",acceleration)
return acceleration
print(acceleration_calculator(force,mass))
It prints :- 36
0
Ohh thanks