Python variable outside loop

# For Loop
for i in range(10):
    # Variable
    x = i

# Print variable
print(x)

Output:

9