Skip to content

Instantly share code, notes, and snippets.

View studiawan's full-sized avatar

Hudan Studiawan studiawan

View GitHub Profile
@studiawan
studiawan / list-for.py
Last active March 11, 2021 04:50
Accessing python list
# declare and fill list
courses = ['j2ee', 'progjar', 'paal']
# iterate each element
for course in courses:
print(course)
# get index and value with enumerate
for index, value in enumerate(courses):
print(index, value)