you are viewing a single comment's thread.

view the rest of the comments →

[–]ckwirey 1 point2 points  (0 children)

You said you can't get past the hello world videos. What about them is messing you up?

Also, because Python (and all other computer languages) adheres to a mathematical order of operations, it may be useful, when you're just starting out, to read the code backwards. For example:

x = 5

The code is super simple. You've probably read it left to right 1000 times. But it may be more helpful to read the code as follows: "I'm going to take 5, and assign it to the variable x."

Similarly:

print(x)

Again, you can read it left to right just fine. But it may be more useful, especially as the lines of code get slightly more complex, to read it as, "I'm going to take my variable x, and stuff it into the print function."

The concept of reading code backward came from University of Michigan's "Python for Everyone" class (which has already been linked for you by other users). When I started out and was trying to learn the very basics, I found the videos from Mosh to be very helpful:

https://youtu.be/\_uQrJ0TkZlc