Lists in Python

Introduction: Lists in Python

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

Maker Olympics Contest 2016

Participated in the
Maker Olympics Contest 2016

Be the First to Share

    Recommendations

    • Unusual Uses Contest

      Unusual Uses Contest
    • Cookie Speed Challenge

      Cookie Speed Challenge
    • 3D Printed Student Design Challenge

      3D Printed Student Design Challenge

    Comments