Skip to content

Instantly share code, notes, and snippets.

@chelseaparlett
Created August 29, 2019 19:09
Show Gist options
  • Save chelseaparlett/959d2e7720eb3aeee90b75e6aa580733 to your computer and use it in GitHub Desktop.
Save chelseaparlett/959d2e7720eb3aeee90b75e6aa580733 to your computer and use it in GitHub Desktop.
#1-----------------------
a = 19
b = 20
c = 18
(a+b+c)/3
#2-----------------------
color = input("What is your favorite color? ")
sentence = "Your favorite color is " + color
print(sentence)
#3-----------------------
num = 17
num = float(num)
print(num) #optional, but just for you to see
#4-----------------------
a = 7
b = 7
print(id(a), id(b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment