An important principle in coding is the information cycle. It’s how all the processes in coding are done.
Input ->> process ->> Output
In python, instructions are called functions. print() is an example of one.
print ->> a function carries out a specific task
() ->> used to carry data into the function
Code in python is read from line to line. This means that a piece of code written in front of another will be run first.
print(‘This will run first!’)
print(‘This will run second!’)
This is important because this makes writing code organized, easy to read and understand.
If we were to remove these quotation marks, an error would occur.
This is because of different data types. In coding there are many different data types and they have special rules when using them.
String Characters (‘abc 123 !@#’)
Integer Whole numbers (123)
Float Decimals (1.23)
Boolean True or False (True/False)