Type Conversion

As mentioned in the previous entry, it was seen that you could not add certain operations together. For example, in the Python, you are unable to concatenate integer numbers and string functions. A real example is that you can not concatenate  the two strings of “2” and “3” to produce an integer value of 5 […]

Read More Type Conversion

String Operations

As we have previously mentioned, strings are functions that can input words or phrases into Python. Similar to how numbers can be added together, words can also be added together in Python too. This process is known as concatenation. Concatenation is the addition of 2 or more strings. When concatenating strings, it does not matter […]

Read More String Operations

Simple Input + Output

*Quick Post In all previous posts, I have mentioned ways of outputting words or numbers from the console to the interpreter. In addition to outputting, you can also allow user external input to have a specific output in the interpreter. As previously mentioned, simple output is printing a string or mathematical equation into the console […]

Read More Simple Input + Output

Strings + New Lines

As previously mentioned, mathematical calculations can be carried out in python. However, in addition to mathematical calculations, text can also be used in python. If you wanted to store text in python, you use the term string for any text stored in python. A string is one of the main types of functions that can be […]

Read More Strings + New Lines

Other mathematical Operators

In addition to addition, subtraction, multiplication, and division, Python also supports exponentiation, quotients and remainders. Exponentiation Exponentiation is raising a number to the power of another for example, 2^3 = 8. Meaning that 2 is multiplied by itself three times; 2 x 2 x 2 = 8. The symbol used for exponentiation is a double […]

Read More Other mathematical Operators


*Quick Post today In maths, numbers can consist of two forms: integers and non-integers. Integers numbers are basically just whole numbers; no fraction or decimal is used. Therefore a non-integer is a number that uses a decimal. In python, a non-integer number is called a float, for example 2.4 or 3.14. Floats can be created by either […]

Read More Floats

Simple Maths

In addition to writing words, Python can be used to carry out simple mathematic questions. Similar to the functions found in excel, inputing an math question will cause an answer in the output. Python can make use of the simple mathematic operations such as: addition, subtraction, multiplication, and division. Unlike the print function, where you […]

Read More Simple Maths

Print Function

Python consists of the console and the interpreter. The console is where the input code can be written and the programme is output after the console has been run. Print Function – The word print is a function that can be used to help output text. [Console] >>> print (“Hello World”) ===== [Interpreter] Hello World […]

Read More Print Function

Introducing Pyjohn

Saturday the 13th May 2017. Today marks the day I start my online journal documenting my journey into programming. Whilst I am currently utilising a vast assortment of resources from online websites, Youtube Videos and several books, I thought it would be beneficial, to me and to anyone else interested in starting their journey into […]

Read More Introducing Pyjohn