Getting Started!
Learning something new can be confusing, no matter what you're learning: a game, a ritual or tradition, a programming language, anything.
If you find parts of these sections confusing, remember that you're not alone; other people have found these ideas strange at first too.
The best thing to do is to keep reviewing the confusing part, typing variations on it into the console or trinkets (more about each of these in a moment!) until it makes more sense.
You might find programming with Python different from other things you've learned before, but you can do it!
If you find parts of these sections confusing, remember that you're not alone; other people have found these ideas strange at first too.
The best thing to do is to keep reviewing the confusing part, typing variations on it into the console or trinkets (more about each of these in a moment!) until it makes more sense.
You might find programming with Python different from other things you've learned before, but you can do it!
How this works...
As we learn more about Python, we'll use three separate tools:
1. Reading material: Text, just like you've been reading
2. Console: This is where you can type Python that executes immediately when you press return.
3. Stand-alone editors: These editors let you type several lines of Python and then run all that you typed by pressing the Run button.
In reality you would save the file with the .py extension and then run it from the console, however, the editors linked to this webpage should work just fine by pressing the Run button.
Ok, let's get started! First off: let's look at how Python handles numbers.
1. Reading material: Text, just like you've been reading
2. Console: This is where you can type Python that executes immediately when you press return.
3. Stand-alone editors: These editors let you type several lines of Python and then run all that you typed by pressing the Run button.
In reality you would save the file with the .py extension and then run it from the console, however, the editors linked to this webpage should work just fine by pressing the Run button.
Ok, let's get started! First off: let's look at how Python handles numbers.