Educational Technology and ICT

Created with Sketch.


Python Programming Language

Course Outline

šIntroduction to Python

šVariables and Data types

šConditional Statements: if, else, elif

šLoops šIntroduction to Data Structures

šFile I/O

šImporting Modules

šObject Oriented Programming

šTkinter GUI

šBuild an Inventory with database: an application for small shops and supermarket


šCreate solutions to worlds problems by creating software-Facebook-to connect, Google-search engine, your school portal-management, by

šCreating Websites, mobile apps, desktop applications,  portals, payment gateways, embedded applications etc

šTo do this they learn programming languages such as java, php, python, c, c++, c#, dart, rust, etc

šYou need an editor(notepad, vscode) and a browser(chrome, firefox, safari, internet explorer) šPrerequisite- HTML and CSS šWe have videos for that and complete software engineering course at www.jambwaecnecouni.com and our youtube channel Tclassified.com. Join our training from anywhere. Call me šTclassified.com needs a junior developer-Salary 100,000-python, wordpress and seo, flutter. From current trainees

Invention of Python

Python was invented in the year 1991 by Guido Von Rossum. It is a high level programing language, whose syntaxes are very close to human language


Python is a multipurpose high level interpreted language.

It emphasizes simplicity and readability.

Its libraries are rich making it a powerful programming language for image manipulations and other activities.

It is the go to language for artificial intelligence, data science, machine learning and deep learning.

Some notable websites are built with python and its libraries like Django and Flask.

Example is REDDIT and instagram

Installation of Python

1.) Go to python.org and navigate to the downloads menu

2.)Download the latest version of python for either your Mac or windows

3.) Once the download is successful, install the package, and make sure to

     tick the add to path checkbox to add python to path.

4.) Once python installed, run it in Interactive mode and you’re done.

Installation of Visual Studio Code (VSCode)

1.) Go to visualstudio.com and navigate to downloads.

2.) Download the version of vscode suitable for your device. It comes in 32 bit and 64 bit.

3.) Run the executable and install Vscode. 4.) You can download the needed extensions and you’re ready to go


Variables are placeholders for the values that are assigned to them. Variables are of various types:

Strings, Integers, booleans  and floating, lists, tuples, dictionaries types.

#this is a comment. Comments are used to guide a programmer #through a code

‘’’this is a documentation string, or docstring(used to define a functions purpose)

It takes multiple lines unlike the comment.

-Variable names are very case sensitive. N_olly isn’t the same as n_olly in Python.

-Variables cannot start with  ‘-’  or numbers. They can start  with an            underscore or a letter

This is how to assign a variable in python:

age = 30           #int

name = “Augustine”    #string

weight =  85.06       #float

Is_here = True      #boolean

‘=’ is the assignment  operator 



Strings are iterable sequences. It can be numbers or letters, but it must be defined by quotation marks, example: “John”.       This is a string.

      “1”.           This is also a string.

               “23.89”.     T his is also a string too.

Iterable means that all the items in the string are indexed and given a position at the creation of the string.

String Concatenation


Strings can be operated on by many ways.


This is the joining together of two strings using the “+” operator.

 name = “john”

 age = “18”

Example: “john” + “18” is “john18”

We can combine this with the print function to get:

#print(“My name is” +  name + “and I am ” + age).


String Formatting


Strings can be formatted also.

#Arguments by position

 print(‘my name is{name} and I am {age}’.format(name=name, age=age)


 print(f ”my name is{name}and I am {age}”)


String Methods


We will start by assigning a variable to a string

 s = “helloworld”


 print(s.capitalize()) #note:the “.” allows you to access the attribute of the string                        class

#make lower case


#make uppercasae


#swap case


#get length of string



#replacing a string item

 print (s.replace(‘h’ , ’b’)


 sub = ‘h’


#what word starts with


#ends with


#splits into a list


#find position


#is all alphanumeric

 print(s.isalnum()) note:this prints out a boolean function True or False.

#is all numeric


#is all numeric

 print( s.isnumeric())

Leave a Reply

Your email address will not be published. Required fields are marked *

Open chat