Notice that already we are moving into some unusual areas - most languages don't bother providing complex numbers or integers with as many digits as you like. What is more, Python decides the type of variable needed according to what you try to store in it. Your first PythonWin program. You can also make use of formatting operations very similar to the C formatting codes. At this stage suffice it to say that Python has sufficient string handling to make most tasks relatively easy compared to the tricks you have to perform when using C. Data structures After discovering the basic variable types the next thing you should be interested in are the data structures that are available.
Lists are in general more powerful and easier to use than arrays.
You can create a list simply by writing constants within square brackets. You can access list members using an index notation and you can insert and delete items in the same way. In this mode of use lists look like arrays but they can be used in more sophisticated ways. There are functions which append to a list, sort it, reverse it count it and so on. Of course a list may contain a list and so you are free to build data structures which correspond to trees or anything else that can be made of nested lists.