100 days of Python Exercise

1 min read
Day 8: Exercise on Einsteins' formula
Today's exercise is based on the famous energy formula
m = int(input("m: "))
def einstein():
return m *300000000**2
result = einstein()
print("E: "+str(result))
#this is a code for the formula any mass you input you get the corresponding Energy
0
Subscribe to my newsletter
Read articles from Bright Andoh directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
