Python – Environment Setup to Start Coding

You need a development environment to write your codes. What is development environment? This will be your cooking workspace. Just like you need a place to chop vegetables and mix ingredients, you need a place to write your Python code. It’s like your kitchen counter.

Briefly, the development environment consists of the following parts:

Python Interpreter

This is like the chef who follows your recipe and cooks the food. Python interpreter understands and executes the instructions you write in Python. It is a program that translates the source code written by you into machine language that the computer can understand. Before working with Python language, you need to install it on the computer.

Text Editor or Integrated Development Environment (IDE)

This is your cooking workspace. Just like you need a place to chop vegetables and mix ingredients, you need a place to write your Python code. It’s like your kitchen counter. You need to install it on the computer too.

Output Display

When you’re done cooking, you want to see the delicious dish you made. In Python, you can create programs that show results, like printing words or numbers on your screen.

Screenshot of an online IDE (https://trinket.io/)

Here’s how you set up your “cooking” environment for Python:

Install Python: Just like you need to bring ingredients to your kitchen, you need to install Python on your computer. It’s like getting your cooking tools ready. You can download Python from the official website (www.python.org), and it’s free!

Choose a Text Editor or IDE: Think of this as picking your favorite kitchen counter to work on. You can use simple text editors like Notepad (for Windows) or TextEdit (for Mac), or you can use special Python-friendly places like Visual Studio Code, PyCharm, or IDLE.

Start Cooking (Writing Code): Now that your kitchen is ready, you can start following your Python recipe. Open your text editor or IDE and start writing Python instructions. For example, you can tell Python to say “Hello, world!” or do calculations.

Serve the Dish (Run Your Code): Once your recipe (Python code) is ready, it’s time to cook! Press a button or give a command in your text editor/IDE to run your Python program. The Python interpreter (chef) will read your recipe and show you the results.

That’s it! Setting up a Python environment is like preparing your kitchen to cook a delicious dish. Once everything is set up, you can create all sorts of amazing programs and see the results right on your computer screen. Remember, just like cooking, practice makes you better at writing Python code!

Additionally, you can use it online in a web browser. I will teach you online within a web browser to prevent you from getting bored with installations. 😊

You can see below one of the online IDEs for Python:

https://trinket.io/python

If you have any questions about this topic, please don’t hesitate to ask in the comments. I will answer all your questions.

1 thought on “Python – Environment Setup to Start Coding”

Leave a Comment