def acceleration(v0, v1, t):
while v1 < v0:
print('the data is incorrect, enter new ones')
v1 = int(input('V1 >>> '))
v0 = int(input('V0 >>> '))
return str(((v1 - v0)) / t) + ' m/s2'
print(acceleration(int(input('V1 >>> ')), int(input('V0 >>> ')), int(input('time(in sec) >>> '))))
Comments
Leave a comment