Python4Kids: New Tutorial: Variables and Stuff | Linux Today

Python4Kids: New Tutorial: Variables and Stuff

Written By
Web Webster
Web Webster
Jul 16, 2010

[ Thanks to Brendan Scott for this
link. ]

“In some of the earlier tutorials I’ve been using
variables without actually explaining what they are. Strict
Python-Zen: within Python there are no variables everything is an
object*. On the assumption that that is too abstract for you, I
will explain it a different way, through the use of containers
(like trays and buckets) which, if I’m lucky, will preserve at
least a little bit of the Python-Zen.

“Variables allow you to be flexible. They are a way of storing
something in the computer, much like having a bucket for putting
your Lego in. If you need to go do some chores and just drop your
toys, you might not be able to find them again later – or if
your parents clean up the toys might get thrown out in the course
of garbage collection. If, instead, you get a plastic bucket out
and put them in there, you can rest safe in the knowledge that
they’ll be there later after you finish your chores. Variables are
a bit similar.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.