What does if __name__ == “__main__”: do?
What does if __name__ == “__main__”: do? The best answer I found after searching for it in Google was in StackOverFlow. According to it, whenever the Python interpreter reads a …
What does if __name__ == “__main__”: do? The best answer I found after searching for it in Google was in StackOverFlow. According to it, whenever the Python interpreter reads a …
With Yagmail, sending e-mail using a Python program is easier than ever before. Yagmail – Yet Another Gmail/SMTP Client is a user-friendly API that simplifies the process of sending emails. In …
Python provides several ways to format strings. These different ways have their own advantages and disadvantages. Python 3.6 and above come with another method of string formatting (formally termed as …
Sorting is a very common problem that many programmers may come across. Like any other programming languages, Python has its own built-in sorting methods. These sorting methods are sort() and …
Differences between sort() and sorted() in Python Read More »
Unlike many programming languages, you may know like Java and C, Python does not support switch case construct. I came to know about this while converting a Java program to …
Python comes installed along with many flavors of Linux. For Raspbian Operating System (OS), like some other Linux-based OSes, both Python 3 and 2.7 comes installed by default. Raspbian OS …
Why Not Uninstall or Remove Python from Raspbian OS Read More »
Working on a virtual environment can save your system and your works on it. Creating your Python virtual environment would ensure that the dependencies required for different projects are in …
I was setting up the Python environment in my newly bought Raspberry Pi. While I was trying to install pip in Python 2.7, to my surprise, the warning for Python …
Python on Android Phones: Python programming language is being used for various purposes, because of its simplicity and robustness. In most of the institutions, it is being taught as introductory …
Kattis Problems’ Solutions: Kattis Problem Archive contains hundreds of interesting competitive programming questions. Solving these problems can be fun and challenging at times. Here in my college, students use this …
Open Kattis Problems’ Solutions in Python (TRIVIAL and EASY Questions) Read More »