Python variable outside loop Py Py Mar 15, 2022 # For Loop for i in range(10): # Variable x = i # Print variable print(x) Output: 9