Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Distance(v0,a,t):
- if t<0:
- print("Time must be non-negative")
- return
- if a > 10 or a<-10:
- print("Acceleration is too big or too small")
- return
- d = v0*t + 0.5*a*t*t
- print("Job done")
- print(f"The distance is {d}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement