Python Uncoiled: A Beginner’s Guide to Mastering the Serpent of Programming — Part 1: Variables, Print Statements & Strings

Welcome to Python Uncoiled: A Beginner’s Guide to Mastering the Serpent of Programming.” In this multi-part series, we will embark on a journey to explore one of the most popular and versatile coding languages, Python.

Welcome to Python Uncoiled: A Beginner’s Guide to Mastering the Serpent of Programming.” In this multi-part series, we will embark on a journey to explore one of the most popular and versatile coding languages, Python.

Welcome to Python Uncoiled: A Beginner’s Guide to Mastering the Serpent of Programming.” In this multi-part series, we will embark on a journey to explore one of the most popular and versatile coding languages, Python.

Python is often considered “The Serpent of Programming”. This is due to its diverse yet powerful capabilities & its remarkably clean and readable syntax. If you’re a newcomer to the world of Python, this multi-part series will take you from A-Z in Python coding.

Today, in part-1 we will cover our very first Python arguments & syntax, “Variables, Print Statements & Strings”. So now let’s get ready to uncoil the world of Python and dive straight in!

#1. Variables

So what are variables? Variables are essentially Python’s Storage Box or a piece of computer RAM. According to W3Schools.com, a freemium website to learn coding, A Variable is a container for storing data values. To sum it up, a variable can be assigned to store a value. A variable can be written in this syntax,

Python = "Diverse & Powerful Coding Language"

Now that we have written this we can see that, Python is assigned to “Diverse & Powerful Coding Language”. Now let’s move on to “Print Statements”

#2. Print Statements

A print statement is essentially just a line of code that prints what you type onto the Python Console. We can do this using this syntax,

print("Hello World")

When this is typed and the program is run, the console will give us the output, “Hello World”.

Now using our previous code from #1,

Python = "Diverse & Powerful Coding Language"

We will have to print this statement into the console. To do this we have to put this statement into a print statement, but before we do that we have to go over variables in print statements

When you call a variable into a print statement, it will print what the variable is assigned to, not the variable name. So using this terminology let’s try it with our “Python” Variable,

Python = "Diverse & Powerful Coding Language"print(Python)

This statement will now print, “Diverse & Powerful Coding Language” and not “Python”. Now we are done with print statements, but we still have much more to learn in part-1, so over to the next chapter!

#3. Strings

Some of you might be wondering why I didn’t put quotation marks around Python in our last code snippet, this is because it is not supposed to be a string. Python has 2 different types of inputs, “Strings” & “Integers”. If we had used a string on, print(“Python”), The console would have printed “Python” instead of what it was defined to. So this is why we used no Quotation marks around Python!

#4. Conclusion

Congratulations! You’ve completed part-1 of this multi-series article! Good Job! We’ve successfully gone over the Python Basics, Variables, Print Statements & Strings! Hopefully you found this article useful to your journey through Python! If it has be sure to check out part-2! See ya next time!