Lists in Python

About: Occupation: Tech Support

Short program that demonstrates use of lists in Python.

# testing lists
operatingsystems = ["Debian", "Fedora", "OpenSUSE", "Ubuntu", "LinuxMint", "FreeBSD"]
print ("The list of operating systems is: ", operatingsystems)

number = 0

for element in operatingsystems:
print (("Operating system list element:"), number, "is", operatingsystems[number])
number = number + 1

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Maker Olympics Contest 2016

Participated in the
Maker Olympics Contest 2016

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    Discussions