Here we go again! Another blog section fresh from my multi-dysfunctional brain!
Being the only child of an expert programmer, as well as an inhabitant of a century of explosive tech growth, I am pressured to study the topic of artificial intelligence. With the rapidly rising popularity of machine learning, why not attempt to make your own AI buddy?
Having attended computing class years ago, I already have Visual Studio Code in my laptop, meaning I can install all mandatory software inside it. What are they linked to? Python. Online folks say it is the junior entrance to coding for many wannabe programmers thanks to its flexibility and readability.
We will see about that.
Onto the tutorial, let us start with writing your first Python program: print(""). When a file with it is run, characters between "" will be displayed on your terminal.
Now we progress to creating more than texts with print(""). Using stick symbols (/ and _ and |), one can create a simple right angle triangle on their terminal. This simple sequence of print("") functions demonstrates that Python runs its code from top to bottom and right to left.
The next topics on the list are variables and data types. The former are a type of container for code and values; the latter are trait groups data can take on. In Python, knowing which types of data can mix with one another is essential for system ideation. For example, strings are incompatible for printing with numeric codes unless separated by comas.
Separated strings also need plus signs to be displayed with each other.
If you tire of comas or could not be bothered to remember the two syntax rules, you can simply convert your numeric variables into string with str(), as seen below.