Master Python with engaging short videos and interactive quizzes! This blog offers a dynamic learning experience for beginners and seasoned developers alike. Dive into concise tutorials, solidify your understanding with challenging quizzes, and accelerate your Python journey. Learn smarter, not harder – start coding today!
12. Python Lists - Sort(), Sorted & Reverse()
The following concise video provides practical demonstrations of Python’s sort(), sorted(), and reverse() methods to facilitate a quick and thorough understanding.
Sort - This method is specific to lists and modifies the original list directly.
Sorted - This function returns a new list containing the sorted elements. It is best for maintaining the original data while creating a sorted version.
Reverse - The most memory-efficient method which changes the list directly and does not return a new list. Since list.reverse() returns None, so you cannot assign its result to a new variable and expect a list value.
Table showing clear difference between Python Sort() & Python Sorted()

Sort - This method is specific to lists and modifies the original list directly.
Sorted - This function returns a new list containing the sorted elements. It is best for maintaining the original data while creating a sorted version.
Reverse - The most memory-efficient method which changes the list directly and does not return a new list. Since list.reverse() returns None, so you cannot assign its result to a new variable and expect a list value.
Table showing clear difference between Python Sort() & Python Sorted()

11. Python Lists - Append() & Insert()
This post covers the essential append() and insert() methods in Python. Both append() and insert() are primary methods in Python which are used to add elements to a list. In Python, append() is the standard and most efficient way to add a single element to the end of a list. Use insert() only when the element must be placed at a specific index.
10. Python Lists

A Python list can be called a collection of items in a particular order.
This short & Quick video tutorial outlines the fundamental operations involving Python lists, specifically focusing on how to retrieve entire lists, access individual elements using standard positive indexing, and utilize negative indexing for efficient access from the end of the sequence.
8. Python Data Types - Strings - Part 2
We already did a short video on Python data types - Strings. If you haven't watched that yet then please go and check it here. In this short video we will talk about tabs and new line characters in Python and also about Python Strip() function with an easy to understand example.
7. Python Data Types - Strings

In Python, a string is a fundamental data type used to represent sequences of characters, primarily for handling textual data. In this short video on Python Strings we are talking about string variables (like how to store strings in a variable), some string methods like Upper(), Lower(), Capitalize(), Title() etc. We also talk about string formatting, meaning embedding values into strings using f-strings or the format() method.
5. Python Data Types - Numbers
In this short video on Python data types, we will talk about data type Numbers and within numbers mainly integers and floats. Once you are done with the video you can check your knowledge with this quiz on Python data types numbers.
3. Python Variables
This short video talks about Python variables in general, are they case-sensitive?, latest value stored in a Python variable, valid variable names, Python variable examples and so on. When you are done with the video, you can test your knowledge on Python variables by taking this quiz.
2. Running First Python Code
In the previous post we installed Python on Windows, wrote our very first Python code and ran it from Command prompt. We also checked Python version installed from Command prompt.
This 2.24 minutes video is again a quick short introduction to downloading and installing Python, installing Visual Studio Code and Python extension for Visual Studio Code. We also run our first Python program in Visual Studio Code in this video.
This 2.24 minutes video is again a quick short introduction to downloading and installing Python, installing Visual Studio Code and Python extension for Visual Studio Code. We also run our first Python program in Visual Studio Code in this video.
1. Installing Python and running Hello World
Download Python and install it on your system. I am working on Windows so installed it on Windows.
Downlod link for Python.
Few screenshots taken during installation:


Once Python is installed successfully, open Notepad and type:
print ('Hello World')

Save the above Notepad file with .py extension. For example I saved it as 'firstcode.py'.
Open Command prompt and go to the location (I saved it on my desktop) where firstcode.py is saved on your system. To run the code, type py [NAME_OF_THE_FILE] and hit Enter.

Few points to consider:
1. The code we wrote is calling built-in function called 'print' and NOT 'Print'. No capital p, else it will show an error like:

2. To know the version of the Python installed, type py on the Command prompt and press Enter.

To go to the Command prompt again, type quit or (exit()) and hit Enter.

3. Above, we wrote the Python code in file and ran that. You can also wirte the Python snippet directly in the terminal window like:

As you can see in the screenshot above, we first went to Python prompt by typing py and then wrote the snippet which prints Hello World and then hit Enter.
Downlod link for Python.
Few screenshots taken during installation:


Once Python is installed successfully, open Notepad and type:
print ('Hello World')

Save the above Notepad file with .py extension. For example I saved it as 'firstcode.py'.
Open Command prompt and go to the location (I saved it on my desktop) where firstcode.py is saved on your system. To run the code, type py [NAME_OF_THE_FILE] and hit Enter.

Few points to consider:
1. The code we wrote is calling built-in function called 'print' and NOT 'Print'. No capital p, else it will show an error like:

2. To know the version of the Python installed, type py on the Command prompt and press Enter.

To go to the Command prompt again, type quit or (exit()) and hit Enter.

3. Above, we wrote the Python code in file and ran that. You can also wirte the Python snippet directly in the terminal window like:
As you can see in the screenshot above, we first went to Python prompt by typing py and then wrote the snippet which prints Hello World and then hit Enter.
Subscribe to:
Comments (Atom)