Wich is very good. In vb or c#, many people make everything public (easy, cuz always accessible). And then the problems start.
Fact: Did you know that in vb or c# you can even declare every attribute as 'object'-type, wich allows any type? Don't use it, unless really necessary...
Fact: A cessna 152 takes of at a speed of (in general) 55 knots. That is 102 km/h or 63 mph
actually in python everything is a type of object
it is like the VB concept of a variant( eg '12' can be treated as a double or an int or a string using coercion)
BBC Basic was the first language to use coercion that I am aware of
followed by the Sinclair QL
circa 1985
sometimes in vb a particular type does not compile properly but if you just call it an object then it works ok - typical microsoft bugs
i think therefore everything in python is an implicit pointer
for x :0:10:1; (this is a fornext loop)
x goes from 0 to
LESS THAN 10 eg 0,1,2,3,4,5,6,7,8,9
r = [for x :0:10:1] gives you [0,1,2,3,4,5,6,7,8,9]
r = [0,1,2,3,4,5,6,7,8,9]
very useful that is you get a list holding the results
a variation on this is to take a list of objects
run through this(
oldlist) list,
applying a condition(filter) so you get another list(
newlist) which is a
SUBSET of the first one
I havent checked yet but I believe this is a list of pointers to the objects in the original list so if you change one of the objects in the
new list it will be reflected in one of the objects in the old list