Python: Part Ten - Deepstash
Python: Part Ten

Python: Part Ten

1 idea

·

34 reads

1

Learning Python: For loops

Learning Python: For loops

When we think about for loops you can think of them as loops that will run the code inside its scope until its got the range that was specified.

So in this case "x" is just a variable i assigned, i could have called it "number" or "num". In this case this is a int value so it starts at 0. If you look at the output part its printed upto 9, even though i put 10, the way to think about this is loop over 10 numbers, which 0 is a number so 0 to 9 is 10 numbers. Then i am just pring the varible that was created.

For a few lessons it will all be about for loops

Dont forget to join discord channel 

1

34 reads

CURATED BY

samuelbancroft

Keep reading, keep studying, the more you learn the more you change. If you are doing the Python lessons please join this discord channel https://discord.gg/kugXx9KY but please follow the rules

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving & library

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Personalized recommendations

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates