Python - 5 Minute Entrance Guide
Table of contents
Firstly , I'm going to dive in, no time wasting.
Simple print statement and how it works:
A print statement is a pre-defined function that outputs the text into the console (Example:)
Console: Hello, students!
Now that we have our mighty debugging tool: print, we are able to start our first code, lets start with some variables.
Variables are like inventory slots in-games. They store valuable items 🗳🧰
(Example:)
Variables can be accessed and they have classes 🏫🎒 some of most commons are: int (integer) and str (string), integer classes are basic numbers like 1 or 2. While strings are words and numbers, like "Gold X36", strings are classified by adding quotation marks (" "). In our example the example_variable is a string!
Now that you have learned the pillars of python, time for your first assignment :
Make a script that outputs a variable with is a string.
🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔
Bell rang! You are all dismissed!
Subscribe to my newsletter
Read articles from Oğuzhan Kırbaş directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by