+ 1
Please I need the help of python lovers here..
Explanation: 20% of 50 is 10. To calculate 20% of a given amount, you can multiply the number by 20 and divide it by 100: 50*20/100 = 10.0
2 Antworten
+ 1
My friend the sign you are talking about is precent symbol but its called modulo operator in python .
Modulo operator is used to find the remainder of any operation so the answer is not 10 or 10.0
Its answer is run the code and find your self in code playground =
x=20%50
print(x)
0
https://www.sololearn.com/discuss/2828777/?ref=app
https://www.sololearn.com/discuss/2690415/?ref=app
https://www.sololearn.com/discuss/2738734/?ref=app
https://www.sololearn.com/discuss/2825986/?ref=app
https://www.sololearn.com/discuss/2742307/?ref=app
https://www.sololearn.com/discuss/2828774/?ref=app
https://www.sololearn.com/discuss/2776420/?ref=app
https://www.sololearn.com/discuss/2898719/?ref=app
https://www.sololearn.com/discuss/2709597/?ref=app
https://www.sololearn.com/discuss/2730527/?ref=app
https://www.sololearn.com/discuss/2749534/?ref=app
https://www.sololearn.com/discuss/2912789/?ref=app
https://www.sololearn.com/discuss/2830961/?ref=app
https://www.sololearn.com/discuss/2809685/?ref=app
https://www.sololearn.com/discuss/2860116/?ref=app