Sitemap

Beginner’s Guide to Python

2 min readOct 18, 2024

--

Python, one of the world’s most popular programming languages, was first released in 1991 (version 0.9.0) by Guido van Rossum while working at Centrum Wiskunde & Informatica (CWI), a research institute. One of the language’s biggest advantages is its standard library, which includes between 200 and 300 modules, and PyPI (Python Package Index), Python’s official package repository, which hosts over 450,000 third-party libraries.

After covering the basic information, we can now begin our introduction to Python.

One important thing to note is that users need to ensure they download the version (32-bit or 64-bit) that matches their computer’s architecture. After downloading the appropriate version from the official Python website, during installation, make sure to check these two options:

Press enter or click to view image in full size
  • Use admin privileges when installing py.exe
  • Add python.exe to PATH

Checking these options is crucial for making the installation more accessible. Installing py.exe with admin privileges ensures that Python can execute certain tasks without restrictions. Meanwhile, adding python.exe to the PATH environment variable allows you to run Python directly from the command line without needing to navigate to its installation directory every time.

Get Mehmet Vefa Akdemir’s stories in your inbox

Join Medium for free to get updates from this writer.

After this step, depending on your project needs and goals, you should choose an appropriate code editor or IDE (Integrated Development Environment) for Python.

Assuming we choose PyCharm as our editor, let’s proceed with downloading it from JetBrains’ official website. Select the version that matches your system. Depending on your preferences, you can opt for the free Community edition or the paid Professional edition.

Once the download is complete, you can optionally create desktop shortcuts and agree to the Privacy Policy. After that, the installation process is straightforward.

In summary, Python is an object-oriented, dynamic, interpreted, versatile, and cross-platform language that can run on various operating systems. Its versatility allows it to be used in many different types of projects.

To get started with coding, open PyCharm and go to the “File” menu in the top-left corner, then select “Create New Project.” Name your file hello_world.py . In the newly opened window, write the following code:

print(“Hello, World!”)

Right-click within the window and select “Run ‘hello_world’” to see the output. If you see “Hello, World!” displayed, congratulations! You’ve just written your first Python code. From here, you can continue to develop your skills by using educational sites, books, or platforms with tutorials, or by practicing with small exercises.

--

--