Difference between revisions of "Python"

From Coder Merlin
m (Editorial review and minor corrections)
m (Editorial review and minor corrections)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
See the full list of [https://www.codermerlin.com/wiki/index.php/Programming_languages languages].
== What is Python? ==
== What is Python? ==
Python is a '''high-level''', general-purpose '''programming language'''. Here is some quick information about Python:
Python is a '''high-level''', general-purpose '''programming language'''. Here is some brief information about Python:
* Python is '''open source'''
* Python is '''open source'''.
* Python is '''free''' and '''on multiple platforms'''
* Python is '''free''' and '''on multiple platforms'''.
* Python is '''easy''' to pick up (a great beginner programming language)
* Python is '''easy''' to pick up (a great beginner programming language).
* '''Thousands''' of online tutorials on Python are available
* '''Thousands''' of online tutorials on Python are available.
* Python has many third-party applications
* Python has many third-party applications.
* Supports '''different''' types of programming such as object-oriented, structured, and functional programming
* It supports '''different''' types of programming such as object-oriented, structured, and functional programming.
* Python is '''updated''' often
* Python is '''updated''' often.
* Python is an '''interpreted''' programming language
* Python is an '''interpreted''' programming language.


If you are looking for '''coding references''' or '''tutorials''', some great websites to use when programming in Python are the [https://docs.python.org/3/ official documentation] and [https://www.w3schools.com/python/ W3schools].
If you are looking for '''coding references''' or '''tutorials''', some great websites to use when programming in Python are the [https://docs.python.org/3/ official documentation] and [https://www.w3schools.com/python/ W3schools].


== History of Python ==
== History of Python ==
Guido van Rossum released Python on '''February 20, 1991'''. Contrary to common belief, Python is named after an old comedy show called ''Monty Python's Flying Circus,'' '''not''' after the type of snake. Python 2.0 was released in '''October of 2000''', and Python 3.0 was released in '''December of 2008'''. In the time in which this was written, Python is '''currently''' in 3.11.0.
Guido van Rossum released Python on '''February 20, 1991'''. Contrary to common belief, Python is named after an old comedy show called ''Monty Python's Flying Circus,'' '''not''' after the type of snake. Python 2.0 was released in '''October 2000''', and Python 3.0 was released in '''December 2008'''. In the time in which this was written, Python is '''currently''' in 3.11.0.


== Principles of Python ==
== Principles of Python ==
The zen of python
The Zen of Python


# Beautiful is better than ugly.
# Beautiful is better than ugly.
Line 42: Line 44:


== Pros of Python ==
== Pros of Python ==
* Python is very easy to learn and is a great learning tool
* Python is very easy to learn and is a great learning tool.
* You can use Python to branch off to other languages
* You can use Python to branch off to other languages.
* It has many use cases
* It has many use cases.
# Web development (Flask)
# Web development (Flask)
# Game development (pygame)
# Game development (pygame)
Line 50: Line 52:


== Cons of Python ==
== Cons of Python ==
* Python is slower compared to other programming languages
* Python is slower than other programming languages.
 
== Popular Libraries ==
=== Bot development ===
    * [https://pypi.org/project/discord.py/ Discord.py]
    * [https://pypi.org/project/py-cord/ Pycord]
===Data science===
    * [https://pypi.org/project/numpy/ Numpy]
    * [https://pypi.org/project/plotly/ Plotly]
    * [https://pypi.org/project/pandas/ Pandas]
===Game Development===
    * [https://pypi.org/project/pygame/ Pygame]
    * [https://pypi.org/project/raylib/ Raylib]
===Web development===
    * [https://pypi.org/project/Flask/ Flask]
    * [https://pypi.org/project/Django/ Django]


== References ==
== References ==

Latest revision as of 16:45, 24 February 2023

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

See the full list of languages.

What is Python?[edit]

Python is a high-level, general-purpose programming language. Here is some brief information about Python:

  • Python is open source.
  • Python is free and on multiple platforms.
  • Python is easy to pick up (a great beginner programming language).
  • Thousands of online tutorials on Python are available.
  • Python has many third-party applications.
  • It supports different types of programming such as object-oriented, structured, and functional programming.
  • Python is updated often.
  • Python is an interpreted programming language.

If you are looking for coding references or tutorials, some great websites to use when programming in Python are the official documentation and W3schools.

History of Python[edit]

Guido van Rossum released Python on February 20, 1991. Contrary to common belief, Python is named after an old comedy show called Monty Python's Flying Circus, not after the type of snake. Python 2.0 was released in October 2000, and Python 3.0 was released in December 2008. In the time in which this was written, Python is currently in 3.11.0.

Principles of Python[edit]

The Zen of Python

  1. Beautiful is better than ugly.
  2. Explicit is better than implicit.
  3. Simple is better than complex.
  4. Complex is better than complicated.
  5. Flat is better than nested.
  6. Sparse is better than dense.
  7. Readability counts.
  8. Special cases aren't special enough to break the rules.
  9. Although practicality beats purity.
  10. Errors should never pass silently.
  11. Unless explicitly silenced.
  12. In the face of ambiguity, refuse the temptation to guess.
  13. There should be one—and preferably only one—obvious way to do it.
  14. Although that way might not be obvious at first unless you're Dutch.
  15. Now is better than never.
  16. Although never is often better than right now.
  17. If the implementation is hard to explain, it's a bad idea.
  18. If the implementation is easy to explain, it might be a good idea.
  19. Namespaces are one honking great idea—let's do more of those!

You can see this by: import this

Pros of Python[edit]

  • Python is very easy to learn and is a great learning tool.
  • You can use Python to branch off to other languages.
  • It has many use cases.
  1. Web development (Flask)
  2. Game development (pygame)
  3. Bot development (discord.py)

Cons of Python[edit]

  • Python is slower than other programming languages.

Popular Libraries[edit]

Bot development[edit]

   * Discord.py
   * Pycord

Data science[edit]

   * Numpy
   * Plotly
   * Pandas

Game Development[edit]

   * Pygame
   * Raylib

Web development[edit]

   * Flask
   * Django

References[edit]

Python.org

Python Documentation

Wikipedia

Code Academy

W3Schools

Pythoninstitute.org

Zen Of Python Wiki