Skip to content

Instantly share code, notes, and snippets.

@daniel-obrien
Created October 31, 2016 21:18
Show Gist options
  • Save daniel-obrien/78c82691cf1e2657af74e7151e09f8c2 to your computer and use it in GitHub Desktop.
Save daniel-obrien/78c82691cf1e2657af74e7151e09f8c2 to your computer and use it in GitHub Desktop.
Percentages
number1=int(input("Please enter the number you would like to find the percentage of"))
number2=int(input("Now enter the percentage, e.g. 50%"))
answer=(number1/100)
answer=(answer*number2)
print(answer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment