Introduction: Lists in Python

Picture of 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

Comments

About This Instructable

248views

5favorites

License:

Bio: Occupation: Tech Support
More by matt392:Replace Letters on Computer Keyboard (or Make Bigger Letters) With Nail PolishMulti-bit Screwdriver From PVC PipeReplace Letters (or Make Bigger Letters) on Computer Keyboard
Add instructable to: