Skip to content

Instantly share code, notes, and snippets.

@austintraver
Created February 10, 2020 08:08
Show Gist options
  • Save austintraver/8965283874b12ddfbec00b2133ff1082 to your computer and use it in GitHub Desktop.
Save austintraver/8965283874b12ddfbec00b2133ff1082 to your computer and use it in GitHub Desktop.
# 1. Define a function, called "double", which doubles the number you give it
def double (x):
return (2 * x)
# 2. Set a variable called "output", make it {equal} to double of 4
y = 4
output = double (y)
# 3. Print that variable
# print (output)
my_number = 10_000_000
while (my_number > 1):
# print(my_number)
my_number = my_number - 1
print("We're done")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment