Beginner Python Concepts
Intro
Hello and welcome to Beginner Python Concepts! Before we get started with actual Python code, it's important to understand what programming is all about.
Simple Machines
Now, computers are very complex, but the way they operate is about as simple as you can get. They deal in 0s and 1s, and they only do exactly what they're told to. There is no thinking / interpreting / assuming with computers. If you make a mistake, the computer will still follow your poorly written instructions.
Some Perspective
Think about any mundane task. This could be going upstairs, packing a bag for a vacation, or even driving to the post office. When you describe how to do these tasks to other people, you can skip over what we consider "common sense." If your bathroom is upstairs and your guest asks to use it, you just tell them it's upstairs. Maybe you tell them to jiggle the toilet handle if it sticks or it's the second door on the right. However, you don't have to tell them things like "watch out for my dog" or "if the door is closed, there might be someone in it already."
Now, with computers, you have to tell them EXACTLY what to do and how to do it. If you don't tell them to watch out for your dog, they would encounter the dog and crash. If the bathroom was occupied, they would crash. If you had too much stuff in the travel bag, they would keep filling it and crash. If you didn't tell them where the post office is, they would wander and probably crash.
These are exaggerations, as what computers need to do is much simpler as far as tasks go. At the basic level, computers are just locating, calculating, or saving data. That's it. We've come so far as to be able to represent just about anything as data.
I recommend this video on YouTube: https://www.youtube.com/watch?v=X8Vu-nEtMVA
Live Python Examples
Sometimes it's easier to see the concepts done in real time. To see some Python in action, check out my Twitch (algore719) and YouTube Clash of Code playlist:
https://www.twitch.tv/algore719
https://www.youtube.com/playlist?list=PLrUDqFPKLyT3cflyYoQSKsLulJlBF-FDW
My Learn Python Playlist on YouTube
https://youtu.be/X8Vu-nEtMVA
Solidify Your Understanding by Creating Your Own Playground!
For anyone interested in making their own CodinGame Playground, I streamed the making of this via Twitch and saved the videos via YouTube. You can follow along with the videos below. If you have any questions, ask the CodinGame community through their world chat! You can also shoot me questions on my Twitch streams, commenting on my YouTube videos, or my Twitter (Twitter and Codepen links are in my bio).
The best way to learn new concepts is to be able to teach said concepts to others. Even if you're just talking to your Rubber Duck, being able to teach the material bodes well for your understanding.