variable question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • happy

    variable question

    Can a variable be considered the simplest of the data structures.
    I am tutoring some kids about basics of programming using python.
    Not an expert in computer sciences, but am a python enthusiast.

    I wanted to know if it is correct to say a variable is a data
    structure, it has a name and a value. Put a stack of variables in a
    special data structure called a dictionary where the each name
    associates to a value. If in a data structure, one uses numbers
    starting from 0 to describe the name, it becomes a list and so
    forth....
  • Peter Otten

    #2
    Re: variable question

    happy wrote:
    I think its better to leave the "teach kiddies" tutoring opportunity
    for the python experts out there.
    If you know how to make some simple scripts that do something that kids find
    interesting and are able to convey your enthusiasm, you are better suited
    to teach than any expert who tortures them with explanations of how a
    variable is not a name is not a pointer.

    Peter

    Comment

    Working...