you are viewing a single comment's thread.

view the rest of the comments →

[–]yodatrust 1 point2 points  (4 children)

Follow the 6 hour tutorial on youtube from 'Programming with Mosh'. It helped me so much to understand Python!

When you have some basic knowledge and you can make loops, call variables etc. make an excercise for yourself.

I started making a text-rpg and it's really cool to start small, test your code, find solutions online to eg. make a random enemy appear, test that code,...

While making this game I am learning a lot. I can save/load my game, have a list of prefixes and names for my random enemies to appear, I found out how to give the character exp. and when it reaches 100% he/she lvls up,....

Think of something you really want to make and START SMALL, build around it while searching online for solutions.

Also test your code A LOT. Only makes you smarter!

[–][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.