DEV Community

loading...
Cover image for Python for Beginners: How to Get Started

Python for Beginners: How to Get Started

jones268 profile image jones268 ・2 min read

Python is an easy-to-learn, powerful programming language that can be used in many different ways to create both small and large programs.

Its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java.

How do I start? 🚀

The Python website is a community resource for you to learn Python. Whether you learn it by reading tutorials, taking online classes, or having a friend teach you, we hope you can find what you need to become successful.

Personally I like learning by doing. You can find over 200 Python Exercises here and another good book here.

The Python interpreter executes Python source code, which may be written in scripts or programs as well as interactively within a Python shell.

print("hello world")
Enter fullscreen mode Exit fullscreen mode

Python source code is interpreted; it has no compilation step.

$ python hello.py
hello world
Enter fullscreen mode Exit fullscreen mode

Once you’ve learned the basics of Python, you can use it for many different applications.

Web Development 🌎

Web development is one of the things Python is commonly used for. You can build simple blogs or complete web apps with just Python.

You can use it to do web development by creating dynamic websites with frameworks such as Django and Flask.

flask dashboard

There are also other web related frameworks like Tornado and it's very easy to deploy your Python apps online.

Desktop software 💻

So you want to write an awesome GUI interface for your Python app?

You can make desktop software with PyQt or tkinter. Both are GUI modules.

Both are similarly easy to use, and there's plenty of resources out there to help you create a fantastic GUI. But which one should you choose?

pyqt designer

If you want a modern looking GUI, I recommend going for PyQt. If you want a simple quick GUI for a tiny script you can opt for tkinter, as it only has a few widgets.

What else can Python be used for? 🐍

Python can be used for many things. Python is a general purpose programming language. This means it can be used for almost anything 😺.

Python can be used to create games, such as Minecraft or Angry Birds, Snake or anything else. Programmers world wide use Python in both commercial and non-commercial projects.

It can be used for statistical computing. It can be used for artificial intelligence. It can be used for machine learning. It can be used for games, art, education, and science. Python is truly a jack-of-all-trades language.

Discussion (0)

Forem Open with the Forem app