PYTHON
FUN FACT
Prepared by:
● Prajna (1906293285)
● M. Irfan Junaidi (1906293202)
● M. Andre Gunawan (1906400021)
● M. Riswanda A. (1906293171)
Lecturer:
Fariz Darari, S.Kom, M.Sc., Ph.D.
Why it is named “Python”?
Python was named after the
comedy troupe Monty Python (The
language’s name isn’t about
snakes).
Guido van Rossum (Python
creator) is a big fan of Monty
Python’s Flying Circus.
That is why you will often see spam
and eggs used as variables in
examples (a little tip of the hat to
Monty Python’s Flying Circus).
>>> import antigravity
When you type that in your IDLE, it
opens up a webpage with a comic
of antigravity module.
https://xkcd.com/353/
>>> import this
There is a poem
written by Tim Peters
and we can read that
by simply type
import this.
For- and while- loops can
have else statements
Python is the only programming
language that support else
statements after looping.
If the loop raises an exception or
reaches a break statement, the
code under else does not execute.
The code above will print 100 lines with
numbers from 0 to 99 and a line with text
“success 100 numbers” as the output
The code beside
will print 20 as
the output
Infinities can be defined
Who says python can’t define
infinities?
Output
One can do chain
comparison with Python
In Python, we can check whether
a value is greater than another
and lesser than yet another
all at once.
e.g.:
1<=x<=10
The code below prints True
True
The Boolean type was
introduced in Python 2.3
The constants True and False were
added in Python 2.2.1
Which means, in Python 2.2.0 and
earlier, there were no way to check
the truth value of an object.
People prefer Python over
French
According to a recent survey, in the
UK in 2015, Python overtook French
to be the most popular language
taught in primary schools.
Out of 10, 6 parents preferred their
children to learn Python over
French.
Vs.Vs.
CREDITS: This presentation template was created by
Slidesgo, including icons by Flaticon, and
infographics & images by Freepik
REFERENCES
● https://desain.cs.ui.ac.id/static/img/logo-
vertikal-hitam.png
● https://www.geeksforgeeks.org/py-facts-10-
interesting-facts-about-python/
● https://data-flair.training/blogs/facts-about-
python-programming/
● https://medium.com/@dhiraj8899/5-interesting-
facts-about-python-programming-language-
f012f787ee6d
● http://python-
history.blogspot.com/2013/11/the-history-of-
bool-true-and-false.html
● https://analytics4all.org/2016/05/04/8-fun-
facts-about-python/

Python fun fact

  • 1.
    PYTHON FUN FACT Prepared by: ●Prajna (1906293285) ● M. Irfan Junaidi (1906293202) ● M. Andre Gunawan (1906400021) ● M. Riswanda A. (1906293171) Lecturer: Fariz Darari, S.Kom, M.Sc., Ph.D.
  • 2.
    Why it isnamed “Python”? Python was named after the comedy troupe Monty Python (The language’s name isn’t about snakes). Guido van Rossum (Python creator) is a big fan of Monty Python’s Flying Circus. That is why you will often see spam and eggs used as variables in examples (a little tip of the hat to Monty Python’s Flying Circus).
  • 3.
    >>> import antigravity Whenyou type that in your IDLE, it opens up a webpage with a comic of antigravity module. https://xkcd.com/353/
  • 4.
    >>> import this Thereis a poem written by Tim Peters and we can read that by simply type import this.
  • 5.
    For- and while-loops can have else statements Python is the only programming language that support else statements after looping. If the loop raises an exception or reaches a break statement, the code under else does not execute. The code above will print 100 lines with numbers from 0 to 99 and a line with text “success 100 numbers” as the output The code beside will print 20 as the output
  • 6.
    Infinities can bedefined Who says python can’t define infinities? Output
  • 7.
    One can dochain comparison with Python In Python, we can check whether a value is greater than another and lesser than yet another all at once. e.g.: 1<=x<=10 The code below prints True True
  • 8.
    The Boolean typewas introduced in Python 2.3 The constants True and False were added in Python 2.2.1 Which means, in Python 2.2.0 and earlier, there were no way to check the truth value of an object.
  • 9.
    People prefer Pythonover French According to a recent survey, in the UK in 2015, Python overtook French to be the most popular language taught in primary schools. Out of 10, 6 parents preferred their children to learn Python over French. Vs.Vs.
  • 10.
    CREDITS: This presentationtemplate was created by Slidesgo, including icons by Flaticon, and infographics & images by Freepik REFERENCES ● https://desain.cs.ui.ac.id/static/img/logo- vertikal-hitam.png ● https://www.geeksforgeeks.org/py-facts-10- interesting-facts-about-python/ ● https://data-flair.training/blogs/facts-about- python-programming/ ● https://medium.com/@dhiraj8899/5-interesting- facts-about-python-programming-language- f012f787ee6d ● http://python- history.blogspot.com/2013/11/the-history-of- bool-true-and-false.html ● https://analytics4all.org/2016/05/04/8-fun- facts-about-python/