Author Archives: Gurmeet Singh

Print Without Newline in Python (Print in the same line)

Print Without Newline In Python (Print In The Same Line)

Learn to use print multiple items in the same line on the console screen in Python. Learn to prevent print statements to print in new line each time. When you use two or more print statements in Python, each time, the contents are printed in a new line as demonstrated by following code and its […]

Python Stack (Implementation Tutorial with Examples)

Python Stack

This is a tutorial to implement a Stack in Python. Learn to create a stack and to perform different operations on it like push, pop, empty, top, size, etc. Stack A Stack is basically a linear data structure with LIFO (Last In, First Out) properly. In other words, a stack is such a data type […]

Plotting Pie Charts in Python (Tutorial)

Plotting Pie Charts In Python

This is a detailed tutorial on plotting pie charts in Python. Learn to create different types of Pie Charts using the matplotlib module with examples. If you’re an absolute beginner, then I highly recommend you to begin with plotting line graphs and bar charts. Plotting Pie Charts in Python A Pie Chart is a great […]

Plotting Bar Charts in Python (Tutorial)

Plotting Bar Charts In Python

This is a detailed tutorial on Plotting Bar Charts in Python. Learn to draw different kinds of bar graphs with a lot of options using the matplotlib module. Plotting Bar Charts in Python In our last tutorial, we learned to create single line and multi-line graphs using the matplotlib module in Python. If you have […]

Plotting Line Graphs in Python (Tutorial)

Plotting Line Graphs In Python

This is a detailed tutorial on Plotting Line Graphs in Python. Learn to plot and customize, single-line and multi-line graphs using the matplotlib module. Plotting Line Graphs in Python It’s quite easy to plot a line graph in Python using the matplotlib module. If you do not have this module installed on your system, you […]

Python Command Line Arguments and Options

Command Line Arguments And Options

This is a detailed tutorial of the Python Command Line Arguments. Learn to parse the command-line options and arguments to get their values in the program. Python Command Line Arguments Let’s say there’s a Python file named hello.py and we want to execute it from the command line. We’ve to write the following command. python […]

Python time sleep() Method (Tutorial)

Python Time Sleep() Method

This is a detailed tutorial of the Python sleep() Method. Learn to suspend the execution of a given Python program or code for a given number of seconds. Python time sleep() The method sleep() of the Python time module is used to suspend the execution of a given Python program for the desired number of […]

Python if __name__ == “__main__” Explanation

If Name == Main

Find out what is if __name__ == “__main__” in Python and its purpose. Learn about the __name__ attribute and when its value is set to “__main__”. What is if __name__ == “__main__”? You might have seen the following line of code in numerous python programs. if __name__ == “__main__” But what is its purpose? Let’s […]

Sending Emails in Python using SMTP (Tutorial)

Sending Emails Using Python

Follow this step by step tutorial to send emails with Python. Learn to do the SMTP settings and other configurations to send a text or HTML based email. How To Send Emails in Python? As many of your might already know that the SMTP (Simple Mail Transfer Protocol) is used to send and route the […]

SQL Cheat Sheet (Download in PDF or Image Format)

SQL Cheat Sheet

This article features a fantastic SQL Cheat Sheet with the most commonly used SQL Commands. View it or download in the PDF or Image (JPG or PNG) format. Our SQL Cheat Sheet enables you to revise almost the entire set of SQL Commands quickly. It is highly recommended to go through this cheat sheet if […]