Python How To’s
A collection of small, useful, how to’s for Python.
Note: Edited comments about the –no-site-packages argument now being default, thanks to @dideler on Twitter. Python is a very powerful scripting language. The language has lots of Python packages you can install and use in your projects. Sometimes, you may have different projects that need different versions of the same package/module. For example, let’s say […]Read More
Add Python to the PATH Environmental Variable (‘python’ is not recognized as an internal or external command)
Programming has become the most prominent technological course to be learned. Apart from good logical thinking skills, you need successfully installed software to excel in this field. Python is the most fundamental programming language to learn, but you may experience some errors while installing the Python setup. For Windows users, the most common error displayed […]Read More
If you can’t execute or run a Python script, then programming is pointless. When you run a Python script, the interpreter converts a Python program into something that that the computer can understand. Executing a Python program can be done in two ways: calling the Python interpreter with a shebang line, and using the interactive […]Read More
Edit 1: This article has been revised to show the differences between str.isdigit() and the custom solution provided. Edit 2: The sample also supports Unicode! Often you will want to check if a string in Python is a number. This happens all the time, for example with user input, fetching data from a database (which […]Read More