def GetPercentage(num1, num2):
return (num1 / num2) * 100
print("30 is", GetPercentage(30, 40), "% of 40")
print("40 is", GetPercentage(40, 30), "% of 30")
print("20 is", GetPercentage(20, 35), "% of 35")
print("21 is", round(GetPercentage(21, 93), 2), "% of 93")
'''
run:
30 is 75.0 % of 40
40 is 133.33333333333331 % of 30
20 is 57.14285714285714 % of 35
21 is 22.58 % of 93
'''