Learning scope and variables

As explained with code,
means variable x = 0 that is defined in for loop …is not accessible outside of for loop. Right?

hello @omkarvp99

yeah correct. u cant access it out of the for loop

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.