4 Answers
+ 5
Wiseman Umanah ,
the percentage character *%* has different meanings in python:
> it is used as operator for modulo calculations
> it is also used as a kind of place holder when formating date / time expressions for input / output.
> but what you can do is writing a function or a class that can parse an input string like *1.5% of 3* and calculate the result.
+ 2
Wiseman Umanah
1.5/100*3
0
Rajat C Thanks bro
I know about that formula
i was thinking maybe there's a special operator or method for percentage