In python when ever we want to sort numbers we use sort() function. The sort function makes it very easy to sort a numbers in python. We can sort it without sort function also. And we’ll see it here. e.g., …
In python when ever we want to sort a list we use sort() function. As sort function makes it very easy to sort a list in python. We can sort it without sort function also. And we’ll see it here. …
Here we’ll see the steps to save a python program. Firstly, open the python shell and write the program in it. Then click on file and click on save as. And finally write the name of file.py extension and click …
Notepad ++ is a code editor. Here we’ll see how to run python program in notepad++. First download notepad++. Then click on file > new. Write the program and click run and write the path where python is stored in …
There are a few techniques to reverse a list. We will study them here. Using reverse() The reverse() reverses the items of the list. This is done “in place”, i.e., it does not create a new list. The syntax to …
A list is a data structure, or it can be considered that can be used to store multiple data at once. The list will be ordered and there will be a definite count of it. Here we;ll see how to …
We can get the time by importing a library datetime. This is how we can print time in python.
Prime numbers are those which is divisible by the number itself and one. Here we’ll see a code here by which we can check whether a number is prime or not. e.g., e.g., In this way we can print prime …
In Python, strings are an ordered sequence of character data. There is no inbuilt method to reverse a string. But strings can be reversed in several ways. Different Methods Loop method– In this method we call a function to reverse …
Degree symbol is very useful in mathematic operations and used to write temperatures. Here we’ll see how to print degree symbol in python. e.g., e.g., using chr(176) e.g., In this way we can print degree symbol in python.