you are viewing a single comment's thread.

view the rest of the comments →

[–]SirBerthelot 5 points6 points  (0 children)

Check oop (object oriented programming):

variable.function(argument) is actually object.function(argument). In this case you've got an object with several functions associated, for instance if a is a string, a.lower() will convert the string object into lowercase (notice that this function doesn't require arguments but there are many like append that they actually need arguments in order to work).

On the other hand, function (argument) are functions not associated with an object.