How to Install and Use Black in PyCharm?

Black is a PEP 8 compliant code formatter that will automatically improve your code file in terms of style and adherence to the Python standard. It’ll make your code more Pythonic! Install Black using PyCharm Menu To install Black in PyCharm, go to Settings > Project: Your Project > Python Interpreter > Click the “+” … Read more

Python Version History

Introduction Python is among the most popular programming languages today. Programming languages are a set of instructions that help humans and computers to communicate. The name python originated from a popular series on BBC named “Monty Python’s Flying Circus”. Python has been regarded as the most flexible, easy-to-learn, powerful open-source programming language. Its use varies … Read more

Creating Virtual Environments in Python with Conda

TLDR; You can create a virtual environment in Python conda using those four steps: 1. Check if Conda is Installed 2. Create Virtual Environment 3. Activate Your Virtual Environment 4. Install Packages in Virtual Environment 5. Deactivate Virtual Environment In this article, you’ll learn about an important concept in Python: virtual environments. Why Virtual Environments? … Read more

Python Version End-of-Live (EOL)

Check Python Version You can check your Python version by running python ‐‐version in your terminal or command line. End of Life Python Versions (Table) But when does security support for your Python version end? To learn about the end-of-life of different Python versions, check out the following table: Version Released Security Support (EOL) 3.9 … Read more

Python Version Bit – Does My Python Shell Run 32 Bit or 64 Bit Version?

To check which bit version the Python installation on your operating system supports, simply run the command “python” (without quotes) in your command line or PowerShell (Windows), terminal (Ubuntu, macOS), or shell (Linux). This will open the interactive Python mode. The first line provides information whether it’s a 32 bit or 64 bit version. Alternatively, … Read more

Python Version Anaconda

Open Terminal: On Windows, start Anaconda by searching for “Anaconda Prompt” and click the first result. On Linux and macOS, just open the terminal or shell. Then run either of the following commands, depending on what you want to do. Python Anaconda Version: To check your Python version in Anaconda, run python -V or python … Read more

Python IDLE vs PyCharm

This article shows you when to use which of my top two Python editors: IDLE and PyCharm. IDLE Best for Small Scripts In 90% of cases, I’m using the out-of-the-box IDLE editor to write small scripts and Python programs. It’s lightweight, simple, and provides basic functionality such as syntax highlighting in shell and Python files. … Read more

How to Check Python Version in Jupyter Notebook?

To check the Python version in your Jupyter notebook, first import the python_version function with “from platform import python_version“. Then call the function python_version() that returns a string with the version number running in your Jupyter notebook such as “3.7.11”. You can try this yourself in our interactive Jupyter notebook: Check Version Information Using sys … Read more

Python Version Aliases (Alternatives)

To check the Python version in your shell, you can use the following alternatives (aliases): Terminal: The following commands can be used to check the Python version in your terminal. Note that the first and second are aliases whereas the third one provides more information about the built. python –version python -V python -VV Note … Read more

What’s the Difference Between ‘py’ and ‘python’ in the Terminal?

Problem If you run Python in your terminal or shell, you may have realized that there are two ways to do so: using the “python” command and using the “py” command. What’s the difference? Example Say, you want to check your Python version. You can run both commands and the output is different! Here’s using … Read more

How to Print a NumPy Array Without Brackets in Python?

Note that this tutorial concerns NumPy arrays. To learn how to print lists without brackets check out this tutorial: How to Print a List Without Brackets in Python? Problem Formulation Given a NumPy array of elements. If you print the array to the shell using print(np.array([1, 2, 3])), the output is enclosed in square brackets … Read more