Learning Python for geographic information systems course in the fall

Using online courses at Brilliant at this time to learn Python. Confused with how to write the lines of code and the syntax grammar for writing code.

I"m learning Python for this GIS course in the fall. I’m trying to get ahead of it, because it’s a lot to take in.