Doubt regarding python

i=130
for i in range(10):
print(i)
print(i)
print(i)

explain the output
python m variable ka scope uske for loop k andar nhi rehtha??jaise c++ m hota hai

hey @Ujjwal.madaan ,
can you please provide your code with proper indentation as it is not actually possible to give you an output as such.
you can upload the code to ide.codingblocks.com or provide a screenshot of your code.

Thank You and Happy Learning :slightly_smiling_face: .

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.