Be Globally Certified In Python
Python
Python is a programming language that is particularly good for kids wanting to learn how to code. Python is widely used to teach students coding due to it`s easy to read and understand. Students can learn to write simple code to make their computer run a program.
Python Programming Syllabus
Module 1: Introduction To Coding With Python
In this class, you will be introduced to text coding with Python programming language
What is Python?
Python is a popular programming language created by Guido van Rossum, and released in 1991.
Python is used for:
- web development (server-side)
- Software development
- Mathematics
What can Python do?
- Python can be used on a server to create web applications.
- Python can be used alongside software to create workflows.
- Python can connect to database systems. It can also read and modify files.
- Python can be used to handle big data and perform complex mathematics.
- Python can be used for rapid prototyping, or for production-ready software development.
In this class, you will be taught how to use display in python using print statement
What is print in Python?
Print can be used to display a specified message in Python.
Print can display texts, and all types of data.
Using Print in Python
You code must be enclosed in a print statement with the quotes and parenthesis :
Example:
print("I love to code with python")
print(“Coding is the future language”)
In this class, you will be taught how to use comments in Python programming language
What is comment in Python?
Comments can be used to explain Python code.
Comments can be used to make the code more readable.
Comments can be used to prevent execution when testing code.
Creating a Comment in Python
Comments starts with a #, and Python will ignore them:
Multi Line Comments in Python
Python does not really have a syntax for multi line comments, to add a multiline comment you could insert a # for each line.
Since Python will ignore string literals that are not assigned to a variable, you can add a multiline string (triple quotes) in your code, and place your comment inside it:
Example:
print("Welcome to python class")
print(“Python will not read this due to a comment before the code”)
Module 2: Variables And Data Types
In this class, you will learn how to create and use variables in Python programming language
What are variables?
Variables are containers for storing data values.
Examples:
score = 95 # score is a variable storing data 96 name = "Johnson" # name is a variable storing data "Johnson" print(score) print(name)
In this class, you will learn the rules in creating variables in Python programming language
You can give your variable any name of your choice just that you must follow python rules
Rules:
1. Do not start a variable name with a number 3eggs = 50 WRONG
2. You cannot use space in between a variable name
my school = “Grange” WRONG
3. Do not use python reserved words as a variable name
if or else elif and True False = 50 WRONG
4. Do not use special characters or symbols ATALL!!
!@$%^&*()-+=?/>,<.;:”””`~#
Only one special character is allowed which is underscore _
5. Python is case sensitive
In this class, you will learn the various types of data in Python programming language
What is data?
Data is simply a useful information that can be processed for calculating, planning and reasoning.
Variables can store data of different types, and different types can do different things.
Python has the following data types built-in by default, in these categories:
Text Type: | str |
Numeric Types: | int , float , complex |
Sequence Types: | list , tuple , range |
Mapping Type: | dict |
Set Types: | set , frozenset |
Boolean Type: | bool |
Binary Types: | bytes , bytearray , memoryview |
None Type: | NoneType |
Module 3: Using Python Operators
In this class, you will learn how to use operators in Python programming language
What is a python operator?
Operators are used to perform operations on variables and values.
Python operators are in the following groups:
- Arithmetic operators
- Assignment operators
- Comparison operators
- Logical operators
- Identity operators
- Membership operators
- Bitwise operators
In this class, you will learn how to use operators in Python programming language
What is an arithmetic operator?
Arithmetic operators are used with numeric values to perform common mathematical operations
Python arithmetic operators are in the following groups:
- Addition +
- Subtraction –
- Multiplication *
- Division /
- Modulus %
- Floor division //
- Exponential **
In this class, you will learn how to use arithmetic operators to program an age calculator in Python programming language
What is an age calculator?
An age calculator is used to calculate any age using the year of birth and current year
Module 4: Using Conditional Statements In Python
In this class, you will learn how to use If Else statement in Python programming language
What is if else statement?
The if-else statement is used to execute both the true statement and the false statement of a given condition. If the condition is true, the if block code is executed and if the condition is false, the else block code is executed
Example:
john = 20 mary = 18 if (john > mary): print("John is older than Mary") else: print("Mary is older than John")
In this class, you will learn how to use If Elif statement in Python programming language
What is if elif statement?
The if-elif statement is used to execute both the true statement and the false statement of a given condition. If the condition is true, the if block code is executed and if the condition is false, the else block code is executed
Example:
john = 20 mary = 18 if (john > mary): print("John is older than Mary") elif (john == mary): print("John and Mary are of the same age") else: print("Mary is older than John")
Module 5: Using Arrays In Python
In this class, you will learn how to use Lists to store and organize multiple items in a single variable in Python programming language
What is a list?
Lists are used to store multiple items in a single variable.
Lists are created and indicated using square brackets
List items are ordered, changeable, and allow duplicate values.
List items are indexed, the first item has index [0], the second item has index [1] etc.
Example:
listsample = ["Minecraft", "Roblox", "Football"] print(listsample)
In this class, you will learn how to use Tuples to store and organize multiple items in a single variable in Python programming language
What is a tuple?
Tuples are used to store multiple items in a single variable.
Tuples are created and indicated using round brackets
A tuple is a collection which is ordered and unchangeable.
Tuples are written with round brackets.
The difference between a List and Tuple is that items in a Tuple cannot be changed
Example:
tuplesample = ("Minecraft", "Roblox", "Football") print(tuplesample)
In this class, you will learn how to use Sets to store and organize multiple items in a single variable in Python programming language
What is a set?
Sets are used to store multiple items in a single variable.
Sets are created and indicated using curly brackets.
A set is a collection which is unordered, unchangeable*, and unindexed.
Set items are unchangeable, but you can remove items and add new items.
Sets are written with curly brackets.
Example:
setsample = {"Minecraft", "Roblox", "Football"} print{setsample}
Module 6: Using Loops In Python
In this class, you will learn how to use Python While loop to execute a block of statements repeatedly until a given condition is satisfied in Python programming language
What is a While Loop?
With the while loop we can execute a set of statements as long as a condition is true.
Example:
number = 1 while number < 10: print(number) number += 1
In this class, you will learn how to use Python For loop to run a block of code for a certain number of times. It is used to iterate over any sequences such as list, tuple, string, etc. in Python programming language
What is a While Loop?
A for loop is used for iterating over a sequence for a number of times (that is either a list, a tuple, a dictionary, a set, or a string).
Example:
fruits = ["apple", "banana", "cherry"] for x in fruits: print(x)
Module 7: Using Range() Funtion In Python
In this class, you will learn how to use range() function to return the sequence of numbers starting from a given start integer to a stop integer, which we can iterate using a for loop in Python programming language
What is the range () function?
The range() function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and stops before a specified number.
Example:
number = range(1, 100) for n in number: print(n)
Module 8: Using Date Module In Python
In this class, you will learn how to use the date module. A date in Python is not a data type of its own, but we can import a module named datetime to work with dates as date objects in Python programming language
What is a date module?
If you need to get the current date and time, you can use datetime class of the datetime module.
Example:
import datetime
realtime = datetime.datetime.now()
print(realtime.year)
print(realtime.strftime(“%A”))
Module 9: Python Preparation Exams
In this class, you will begin to solve and work on real python past questions in preparation for your professional entry exam
How many past questions to solve?
We have over 250 questions to give you adequate knowledge and insight to be fully prepared ahead
How many questions in the exam?
There are 30 questions in total
Duration of the exam?
You have about 45mins
What’s the pass grade?
70% above is the pass grade