A program’s control flow is the order in which the program’s code executes. The control flow of a Python program is regulated by conditional statements, loops, and function calls. This section covers the if-else statement and for and while loops if else for while continue break if An if condition can exist on its own, … Continue reading Python Tutorial 5: Basic Flow Control

# Author: NUS BAS

Python Tutorial 4: Data Structures Data structures are basically just that - they are structures which can hold some data together. In other words, they are used to store a collection of related data. There are three built-in data structures we often use in Python - list, dictionary and set. Set Dictionary List Detailed Explanation(optional) … Continue reading Python Tutorial 4: Data Structures

Python Tutorial 3: Basic Operation 1. Quick Math Remember first learning about Maths in primary school? It is similar in Python. Commonly used operators: Symbol Meaning + Addition - Subtraction * Multiplication / Division ** Exponential % Modulus (returns the remainder) In [3]: a = 2 b = 2 In [12]: sumofAB = a+b print(sumofAB) 4 In [13]: … Continue reading Python Tutorial 3: Basic Operations

To start off our tutorial series, we will first learn about basic data types in Python. Strings - Commonly used to represent text, but numbers can be strings as well. Integers - If you remembered learning E Maths in secondary school, integers are just whole numbers. Floats - Other real numbers which have demical places … Continue reading Python Tutorial 2: Data Types – Integers, Strings, Floats, Boolean