Skip to content

Instantly share code, notes, and snippets.

@ninjachen
Created March 30, 2019 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninjachen/4856a4bd695ef7f8a6633172f2b877ba to your computer and use it in GitHub Desktop.
Save ninjachen/4856a4bd695ef7f8a6633172f2b877ba to your computer and use it in GitHub Desktop.
#x = 1
#if x == 1:
# print("x is 1.")
#print("new line")
#words = ['one', 'two', 'three']
#for w in words:
# print(w, len(w))
# Calculate x^3+y^3+z^3=33
limit = 9999999
i = 0
x0 = 0
x1 = 1
while i < limit:
x = x0 + x1
#print('{:d}: {:d} + {:d} = {:d}'.format(i,x0,x1,x))
x0 = x1
x1 = x
i += 1
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment