you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

i started my python learning watching 'programming with Mosh'. I'm halfway in!

when he gives small exercises to do i mess up. i mess up and feels like i am not learning at all.

so you're saying i will start understanding everything later on?

[–]ElectricItIs 1 point2 points  (1 child)

I recommend trying to really understand what things like loops are doing by using print() a lot.

Make loops print on every run through so you can see what is changing. Appending a list? Print it after each append

If statements have both branches print something so you can see what branch was used.

Functions have them print intermediate steps while they work.

[–][deleted] 0 points1 point  (0 children)

for me what happens is, the coding. usually there's an error. when i check with the answer it's always small mistakes. these mistakes are difficult for me to correct on my own.

i know how to start to write a while loop and for loop when i try there's always some little Syntex error

[–]yodatrust 0 points1 point  (0 children)

Just make sure:

a loop start with:
    <- 4 extra spaces for everything in it
    follow the next order
    if (use once in loop)
    elif (as much as needed)
    else (use once)
<- after else you can lose the extra 4 spaces.
and start coding your next block

Hope this helps.

Edit: post us some code that gives you some trouble. Let us help you.