Use of autopct and the value that it is given i that

i did not understand the value that you are giving in the autopct and how the is it calculating the value of maths to be 40%

Hey @sankalparora5, that is part of string formatting, autopct=’%1.1f%%’, in this first % is used to specify that next literal is a variable, 1.1 means atleast one digit before decimal, 1 after decimal means exactly one digit after decimal, %% is used to print '%".

HOpe this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :sunny:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.