Learn how to remove elements from Python lists by value with remove and by index with pop function.
Learn how to copy an existing list to another one without reference in Python 3.
When you want to insert an item at a specific index position, you’ll want to use the insert method.
If you want to add multiple elements at once, you’ll want to use the extend method.
Learn how to get the length of a list in Python 3.
Learn how to create an empty list and add elements to an empty list in the Python programming language.
Learn how to check if a list is empty in the Python programming language.
In this tutorial, we will learn how to use the Python range function in reverse order and use for loops in reverse range.
Learn how to get the current year in Python 3 using the datetime module.
We can get the current time in Python 3 using the time module of the Python's standard library.
Python's os module has a getcwd() function, which we can use to get the current working directory in a python script or console.
Let's see how to get a random number between 1 and 10 in python 3 using the random module.
In this tutorial, we are going to learn how to pause python script using time.sleep() function.
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.
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.
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.
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.
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.
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.
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.
In this tutorial we are going to learn how to open a web browser in python 3.
In this tutorial, we are going to learn how to get current working directory in Python 3 programming language.
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.