Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
Letter Assign
+1
Author: Aymane Boukrouh
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
8
L =
[
1
,
2
,
3
,
4
,
5
]
for
i
in
range
(
len
(
L
)):
exec
(
f
'{chr(ord("a")+i)} = {L[i]}'
)
print
(
a
)
print
(
b
)
print
(
c
)
# it keeps going, till the end of the list
Enter to Rename, Shift+Enter to Preview
OUTPUT