It's a program that calculates the gravity produced by an object.
Anyway... my and BlackJack were talking on the IRC about our latest projects and it came up. Well as BlackJack is the Python Guru and I'm just starting to learn it he offers to help me make it while walking me through the code...
...a few hours later we finally finished it.
I have to say that it is coded entirely by BlackJack.... I just gave him the idea and the formulas.
Enjoy!
Code:
Mass = float(raw_input("Object one's mass: "))
Height = float(raw_input("Objects Height: "))
Gf = (((6.67 * 10 ** -11) * Mass)*(5.9742 * 10 ** 24)/(Height/2)*10**6)
F = Mass * 9.7
print F - Gf It definitely is not exact and I don't know if anyone here will have any use for it, but we think it's the first of it's kind and we're pretty proud
No comments:
Post a Comment