Skip to content

Instantly share code, notes, and snippets.

@offby1
Created June 2, 2015 03:27
Show Gist options
  • Select an option

  • Save offby1/5d18dda6080f3dc4ff3b to your computer and use it in GitHub Desktop.

Select an option

Save offby1/5d18dda6080f3dc4ff3b to your computer and use it in GitHub Desktop.
cats = input("How many cats do you have?")
dogs = input("How many dogs do you have?")
print("You have %r cats and %r dogs." % (cats, dogs))
print("You have %r pets in total." % (cats + dogs))
@offby1
Copy link
Copy Markdown
Author

offby1 commented Jun 2, 2015

(echo 3; echo 4)| python3 wat.py 
How many cats do you have?How many dogs do you have?You have '3' cats and '4' dogs.
You have '34' pets in total.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment