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 […]
Author Archives: Gurmeet Singh
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]