Python Concepts

It is your civic duty to improve this page.

|

## Introduction

[edit | edit source]

Python is a high-level, object-oriented programming language used in coding, created by Guido van Rossum in 1991.[1] Python puts readability at a high standard and this makes it great for both programmers and non-programmers to learn. Python is cross-platform, which means you can run it on all major platforms like Microsoft Windows, Linux, and macOS. Python is open source software and, as a result, has a large community of developers who help improve and contribute to the language. Currently, the main implementation of Python, CPython, is managed by the Python Software Foundation, a non-profit organization working to develop and maintain the Python standards.

Python gives you the ability to rapidly develop projects, while being able to maintain them at the same time. Python usually uses fewer lines of codes than other object-oriented languages, like C++ and Java, and it has a simple and easy syntax. A simple "Hello, world!" can be done with just one line of code (actually this is called a command) and only four lines when recreating it as a GUI!

This course is part of the School of Computer Science. For a complete list of resources, see the Computer Science Course Listing.

Please help develop this resource by:

1. Contributing and giving your knowledge by editing this resource.
2. Giving a teacher or contributor some feedback about this resource.
3. Grammar and spell corrections are appreciated on this resource.
4. Joining a parallel effort at Matlab and Octave .

This course was the 47th most visited learning project in 2014!!![2]

## Prerequisites

[edit | edit source]

Prerequisites are suggested courses that should be completed before taking this course. If you're having a hard time understanding the material in this course, make sure you complete these prerequisites first.

* Introduction to Computers
* Computer Skills
* Introduction to Programming

## Learning Resources

[edit | edit source]

|  | Educational level: this is a non-formal education resource.

|

| Subject classification: this is a technology resource.

|

Want to learn something about Python that's not mentioned below? Go to the Wishlist to find out how.

Introduction

* Why learn Python
* Introduction and Setup
* To Get You Started

Parts of a Program

* Basic Data Types
* Operators
* Flow Control

Statements

* If Statement
* Match-case Statement
* While Statement
* For Statement
* Try Statement
* With Statement
* List Comprehension
* Other Statements

Input & Output

* Console Output
* Console Input
* Files
* Directories

Definitions

* Functions
* lambda, map(), filter(), reduce()
* Variable Scoping
* Built-in Functions
* Modules

Object-Oriented Programming

* Classes
* Regular Expressions
* Iteration and Iterators
* Using Python's Decimal module
* Interfacing with Unix
* Special Methods
* Custom Data Types
* Exceptions Are Classes

Data Type Deep Dives

* Numbers
* Strings
* Lists
* Bytes objects and Bytearrays
* Tuples
* Sets
* Dictionaries

PEP Studies
Tkinter
PyQt

Appendix

* Quizzes
* Activities
* Resources
* Libraries
* Glossary

## Active Participants

[edit | edit source]

### Teachers or Contributors

[edit | edit source]

If you are helping to develop this resource, please sign below by typing 4 tildes (~).

* I8086 (discuss • contribs) 21:36, 25 November 2014 (UTC)
* guyvan52 (discuss • contribs) 16:51, 5 December 2014 (UTC)
* ThaniosAkro (discuss • contribs) 15:55, 1 January 2018 (UTC)
* hjk321 (discuss • contribs) 05:45, 28 June 2022 (UTC)

### Students

[edit | edit source]

If you are using this course as a learning resource, please sign below by typing 4 tildes (~).

* 13hartc (discuss • contribs) 19:02, 5 December 2014 (UTC)
* Alkhowarizmi (discuss • contribs) 01:20, 31 March 2016 (UTC)
* MaratdaviD (discuss • contribs) 21:23, 2 January 2018 (UTC)

* Mohammed Mustapha Aliyu (discuss • contribs) 11:28, 28 February 2018 (UTC)
* AbulijahPisces (discuss • contribs) 03:11, 26 December 2019 (UTC)
* Aldiaz84628 (discuss • contribs) 17:59, 24 April 2020 (UTC)
* Preston 210 (discuss • contribs) 04:18, 30 June 2023 (UTC)

## Further Reading

[edit | edit source]

Wikipedia: Python
Wikibooks:
Non-Programmer's Tutorial for Python
Think Python
Python Programming
PyGTK For GUI Programming
Python Imaging Library
Subject:Python programming language

* Official Python tutorial \- The official Python tutorial from the Python Software Foundation.
* The Python Language Reference
* The Python Standard Library
* Invent Your Own Computer Games with Python \- A complete eBook available for free under a Creative Commons license.
* PythonWiki: Python for Non-Programmers

## See Also

[edit | edit source]

* Python Programming
* Online Python Interpreter
* Pyjamas \- A Python port of Google Web Toolkit
* Template:User Python \- A template for Python users.
* Open academia \- A place to discuss open source teaching of Python with links to cross-disciplinary discussions
* Python subpages if this link fails, use Special:PrefixIndex/Python

* References

1. ↑ Python Software Foundation. "History and License" (HTML). History and License. Retrieved 2015-03-04.
2. ↑ "Wikiversity:Statistics/2014 Projects" (HTML). Retrieved 2015-03-04.

## External links

[edit | edit source]

* Python sub-Reddit
* Learn Python sub-Reddit