Advertisement
biswasrohit20

py

May 2nd, 2021
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def Distance(v0,a,t):
  2. if t<0:
  3. print("Time must be non-negative")
  4. return
  5. if a > 10 or a<-10:
  6. print("Acceleration is too big or too small")
  7. return
  8. d = v0*t + 0.5*a*t*t
  9. print("Job done")
  10. print(f"The distance is {d}")
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement