DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Python for Beginners: Lists

3 years ago thenewstack.io
Python for Beginners: Lists

Summary: This is a summary of an article originally published by The New Stack. Read the full original article here →

Our Python for beginners tutorial continues, so let the celebratory “Huzzahs!” We’re going to continue building on those tutorials and doing so in such a way that anyone can follow.

That script would look like: #Define our color variable as a list color = ['blue','green','red','yellow']

#Print out both variables print (color,fruit, color, fruit, color, fruit, color, fruit)

#Define our fruit variable as a list fruit = ['blueberry','apple','cherry','banana']

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com