Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. inp = open('inp.txt','r+')
  2. out = open('out.txt','w+')
  3. g = 9.81
  4. h = inp.read()
  5. H = h.split()
  6. for i in range (len(H)) :
  7.     H[i] = int(H[i])
  8. V = (2*g*H)**0.5
  9. v = str(V)
  10. out.write(v)
  11. inp.close()
  12. out.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement