While loop while i<=n: print("Step %d"%i) What is %d%i in this?

While loop while i<=n: print(“Step %d”%i) What is %d%i in this ?

In this syntax the string acts as a C-style format string and the elements on the right side of % are arguments. %d represents that it will be replaced by a number and that number is extracted from the arguments.

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.