Python Lessons

Getting Started with Python

Getting Started with Python

Are you totally new to programming or python as a programming language? Any difficulties setting up your IDE(IDLE) all by yourself? Then let's get going.

Strings

Strings

Strings are always chain of characters bounded by triple, double quotes or single quotes in Python, a string can also be just a character.

Operators

Operators

Operators are mathematical signs that are used to evaluate statements. These return a True or False after evaluation, some return the result of the calculation. They are great for mathematical calculations and Python's operators make it easier.

Tuples

Tuples

A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. The only difference is that tuples can't be changed i.e., tuples are immutable and tuples use parentheses and lists use square brackets.

Storage

Storage

By now you should be wondering if there is a way to store data permanently either than in variables, lists or dictionaries. Well, Python provides one of the easiest way to work with files. CRUD(Create, Read, Update and Delete) is made so simple with Python's file system.

DBA

DBA

Database is another way of storing data. probably the most popular for bigger application. Python's DB_API provides an interface to interact with the most popular databases on the market.

Regex

Regex

Regular Expression (RegEx) is a special sequence of characters that helps you match or find other strings or sets of strings, using a specialized syntax held in a pattern.

Networking

Networking

Python provides two levels of access to network services. At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers for both connection-oriented and connection-less protocols.

Multithreading

Multithreading

A way of running several different programs with benefits of speeding progress and thereby reducing computational time.

Emails

Emails

Python provides smtplib module, which defines an SMTP client session object that can be used to send mail to any Internet machine with an SMTP or ESMTP listener daemon.

GUI

GUI

Python provides various options for developing graphical user interfaces (GUIs). Most important are...

Extensions

Extensions

Any code that you write using any compiled language like C, C++ or Java can be integrated or imported into another Python script. This code is considered as an "extension."

Utilities

Utilities

The standard library comes with a number of modules that can be used both as modules and as command-line utilities.

Sets

Sets are a key way to store data in Python. In this tutorial, we show you how to create sets, how to add and remove elements from a set, and how to take the union and intersection of two sets.

Fibonacci sequence

Let’s explore recursion by writing a function to generate the terms of the Fibonacci sequence.

Random Module

To generate random numbers in Python, you use the Random Module.

Introduction

Introduction

Hello there, you are welcome to PywE, where Python is taught from scratch. We strive to make the lessons as comprehensive as possible. If you are a beginner, you are at the right place, if you are not, you will still learn a lot to add to your skills

Identifiers

Identifiers

Variables are reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.

Numbers

Numbers

Number data types store numeric values. They are immutable data types, which means that changing the value of a number data type results in a newly allocated object. It means numbers when created cannot be altered,...

Booleans

Booleans

Python uses bool-ean values to express true or false values. Boolean values are only two, True and False Boolean value is named after a British Mathematician called George Boole, George Boole created Boolean Algebra, which is the basis of all modern computer arithmetic.

Lists

Lists

Python's list is another datatype that can be used to keep other basic datatypes in a fairly organised manner. This is because members of a list are given position numbers by the Python interpreter and therefore can be accessed using their positions called indexes.

Dictionaries

Dictionaries

Dictionaries are one of Python's powerful datatypes, behaves like the popular json, in fact, understanding Python's dictionary gives you almost every thing you need to know about json objects because json can be viewed as Python's dictionaries nested.

Conditions

Conditions

"I will go to the grocery when or if the rain stops", "This team can only win the world cup if it beats the other team in the finals." In this module, we explore how to condition our codes

Loops

Loops

There may be a situation when you need to execute a block of code several number of times. In general, statements are executed sequentially(From top to down): The first statement in a function is executed first, followed by the second, and so on.

Functions

Functions

A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing.

Modules

Modules

A module allows you to logically organize your Python code. Grouping related code into a module makes the code easier to understand and use. A module is a Python object with arbitrarily named attributes that you can bind and reference. Simply, a module is a file consisting of Python code.

Exceptions

Exceptions

Errors. Everyone makes them unless you are perfect and of course, no one is perfect. Error handling is also made very easy while using Python, you get to handle specific errors and also generic errors (not a recommended practice) as well.

OOP

OOP

Object-Oriented Programming is available in Python. It allows for creating your own classes, inheritance and other object-oriented style programming. It's a great way to organize and share your code. It also enhance re-usability of your own code.

Rate This Course