Skip to content

Instantly share code, notes, and snippets.

@royletron
Created March 31, 2013 19:31
Show Gist options
  • Save royletron/5281710 to your computer and use it in GitHub Desktop.
Save royletron/5281710 to your computer and use it in GitHub Desktop.
number = 10
non_number = "11"
print(number)
print(non_number)
total = number + int(non_number)
print(total)
# What if we wanted to print the two numbers and its total?
print(str(number)+" + "+non_number+" = "+str(total))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment