e Learning

Python 3 Tutorials

Python Remove Element from List

Learn how to remove elements from Python lists by value with remove and by index with pop function.

How to Copy List Without Reference in Python 3

Learn how to copy an existing list to another one without reference in Python 3.

Python List Insert - Add Element to List at Index

When you want to insert an item at a specific index position, you’ll want to use the insert method.

How to Append Multiple Items to List at Once in Python

If you want to add multiple elements at once, you’ll want to use the extend method.

Python Get Length of List (Size of List in Python)

Learn how to get the length of a list in Python 3.

How to Create Empty List in Python

Learn how to create an empty list and add elements to an empty list in the Python programming language.

How to Check If List is Empty in Python

Learn how to check if a list is empty in the Python programming language.

Python Range Reverse, For Loop Reverse Range

In this tutorial, we will learn how to use the Python range function in reverse order and use for loops in reverse range.

How to Get Current Year in Python 3

Learn how to get the current year in Python 3 using the datetime module.

How to Get Current Time in Python 3

We can get the current time in Python 3 using the time module of the Python's standard library.

How to Get Current Directory in Python

Python's os module has a getcwd() function, which we can use to get the current working directory in a python script or console.

How to Generate a Random Number Between 1 and 10 in Python 3

Let's see how to get a random number between 1 and 10 in python 3 using the random module.

How to add pause delay in python using sleep function

In this tutorial, we are going to learn how to pause python script using time.sleep() function.

How to get Current Date in Python 3

In This Python tutorial we are going to learn how to get current date in python 3 programming. We will also learn how to get current year, month and day separately.

Learn How to Append Items to Python List

In this python 3 tutorial we are going to learn how to append new elements to a python list using python append() function. In python append() method use to append items to a python list. When you append an item to a list, the new item will be added to the end of the python list.

Learn How to modify list elements in Python List

In this Python tutorial we are going to learn how to modify the list elements in Python List. In python 3 we use the index number of the list element to modify individual list elements. Remember that python list starts with the index position 0 not 1. First element of the list has the index position 0, while the second element of the list has the index position 1.

Python Capitalize String using capitalize() and title()

In python capitalize() method capitalizes the first character of the string while the title() method capitalize the first character of the each word of the string. Python title() Method will return the string with first character of the each word in Uppercase and rest of the characters in lowercase.

Learn How check if a string is a number in Python 3

In this Python 3 tutorial we are going to learn how to check if a string is a number in Python 3 programming. Python 3 has a built in string function called str.isnumeric() which will check whether a string is a numeric or not. But however str.isnumeric() function will return False for floating point number. To check if a string is a float we can use try except statement.

How to add Python shell to the Atom Text Editor

If you are using the Atom text editor as you python IDE, then you should add the script and Terminal-plus packages to the atom editor. With the script package you can run python programs from the atom text editor and Terminal-plus open the Linux/Unix shell in the atom editor. To run python scripts in the Atom text editor, we need to Install the script package.

How to Connect to Sqlite Database in Python 3

In this tutorial we are going to learn how to connect to sqlite3 database in python 3 programming. To connect sqlite database, first we need to import the sqlite3 module. Then, we create the connection to the sqlite database file using sqlite3.connect() function. Finally, once we are done, we should close the connection using sqlite3.close() function. Python sqlite3 module will look for the database you specify, if the database is not exist python will create a new database.

Learn How to Open Web Browser in Python Script

In this tutorial we are going to learn how to open a web browser in python 3.

How to Get Current Working Directory in Python 3

In this tutorial, we are going to learn how to get current working directory in Python 3 programming language.

How to Convert integers to strings in Python 3

Often you will need to convert integers to strings in python programming, especially if you want to concatenate integers with strings. In this python 3 tutorial we are going to learn how to convert int to string in python 3. In python 3 str() function used to convert integers to strings.