If you want a bit more of an in-depth look into why some methods have
Obj.method(), as in why they have a
. then method, look below (you should cover this in classes, but this might give you a little head start):
When you create a class with methods, you are creating an object. That object then has methods that can be used to alter the object you’ve created. The same goes with built-in methods. They were on specific objects (which are basically the same as the objects you create with classes, just built into the language). That means you can use them to alter specific aspects of the object (remember, most things are objects; strings, integers, etc). Take the
#The .append() method adds-puts-the given parameters onto the end of the string
a = ["a", "b", "c"]
a.append("d")#The new list is now ["a","b","c","d"]
#This method operates on an object (list), and does a certain thing
#to it (adds elements to the end).
This article also provides a nice explanation.
I hope this was interesting!