Article Outline
Python example 'percentageCalc'
Functions in program:
def percentToOrig():
percentageCalc
Python beginners example: percentageCalc
# Percentage Calculator
def percentToOrig():
whatPercent = float(input('What Percent : '))
ofWhat = float(input('Of What Percent : '))
orignal = whatPercent / 100 * ofWhat
print(orignal)
print(percentToOrig())
Useful links
- Learn Python: https://pythonbasics.org
- Download Python: https://python.org