[ Web Proxy ]
URL:
Viewing: https://wiki.python.org/moin/../python/platforms/../../python/getting-started/BeginnersGuide.html [Back]  [Original]

Beginners Guide - Python Wiki
Python Wiki
psf/wiki 0 0
Copy page

Beginners Guide

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Beginners Guide to Python

Welcome to Python.

The official Python tutorial provides a good starting point if you have programmed in another language.

New to programming? Python is free and easy to learn if you know where to start! This guide will help you get started.

Beginners Guide: Chinese Translation/

New to Python?

Read BeginnersGuide/Overview for a short explanation of what Python is.

Getting Python

Next, install the Python 3 interpreter on your computer. This is the program that reads Python programs and carries out their instructions; you need it before you can do any Python programming. Mac and Linux distributions may include an outdated version of Python (Python 2), but you should install an updated one (Python 3). See BeginnersGuide/Download for instructions to download the correct version of Python.

There are also Python interpreter and IDE bundles available, such as Thonny. Other options can be found at IntegratedDevelopmentEnvironments.

At some stage, youll want to edit and save your program code. Take a look at HowToEditPythonCode for some advice and recommendations.

Learning Python

Next, read a tutorial and try some simple experiments with your new Python interpreter.

Most tutorials assume you know how to run a program on your computer. If you are using Windows and need help with this, see How do I Run a Program Under Windows.

Here are some sites that focus on beginners and offer in-browser coding:

[Please keep these links sorted alphabetically]

[Outdated, Python 2! * Codecademy ]

Once you have read a tutorial, you can browse through Pythons online documentation. It includes a tutorial that might come in handy, a Library Reference that lists all of the modules that come standard with Python, and the Language Reference for a complete (if rather dry) explanation of Pythons syntax.

When you are ready to write your first program, you will need a text editor or an IDE. If you dont want to use Thonny or something more advanced, then you can use IDLE, which is bundled with Python and supports extensions.

This Python wiki also contains a page about Python One-Liners an obscure but interesting subculture in Python.

Need Help?

Need help with any of this? Read BeginnersGuide/Help for mailing lists and newsgroups.

An interactive and free way to learn Python is to ask ChatGPT or another generative AI model for help. The Python code quality generated by AI agents has become pretty good. State-of-the-art AI models work especially well for small projects or code understanding questions.

Most Python books will include an introduction to the language; see IntroductoryBooks for suggested titles.

Consult BeginnersGuide/Examples for small programs and little snippets of code that can help you learn.

Or, if you prefer to learn Python through listening to a lecture, you can attend a training course or even hire a trainer to come to your company. Consult the PythonEvents page to see if any training courses are scheduled in your area and the PythonTraining page for a list of trainers.

Teachers can join the EDU-SIG, a mailing list for discussion of Pythons use in teaching at any level ranging from K-12 up to university.

Complete list of Beginners Guide pages

Quiz and Exercises

Python Based AI and Prompt Engineering

Looking for a particular Python module or application?

  • The first place to look is the Python Package Index.

  • If you cant find anything relevant in the Package Index,

    try searching python.org - you can find anything mentioned on the Python site, in the FAQs, or in the newsgroup. More info: where to search.

  • Next, try Google or another search engine of your choice. Searching for python and some relevant keywords will usually find something helpful.

  • Finally, you can try posting a query to the comp.lang.python Usenet group.

Python-Related Cheat Sheets

Want to contribute?


CategoryDocumentation

Back to top

Web Proxy Viewer  |  New URL  |  Original Page