CMPE1003 Lecture Notes - Introduction 2022
CMPE1003 Lecture Notes - Introduction 2022
3
• There are MANY popular programming languages
with new ones being created all the time to meet
specific needs.
4
Background on Python
• Python was created by Guido van Rossum who
started development in the late 1980s and
released the first version in 1991.
• Guido retired from the development team in
July 2018
• Since then Python has grown its user base and is
now one of the most popular languages.
• It is used by companies like Google and
NASA!
• Python is open source and development is still
on-going and carried out by a dedicated
community.
• Python gets its name from the British comedy
group Monty Python.
https://en.wikipedia.org/wiki/Python_(programming_language) 5
Excerpts from “The Zen of Python”
• Beautiful is better than ugly.
• Explicit is better than implicit.
• Simple is better than complex.
• Complex is better than complicated.
• Readability counts.
• There should be one – and preferably only one –
obvious way to do it.
Tim Peters
Ref: https://peps.python.org/pep-0020/
6
High-level language, interpreted, general purpose,
emphasizes code readability
Dynamically typed
7
Reserved Words • False • class • global • raise
in Python 3.9 • None • continue • if • return
• True • def • import • try
• __peg_parser__ • del • in • while
• and • elif • is • with
• as • else • lambda • yield
• assert • except • nonlocal
• async • finally • not
• await • for • or
• break • from • pass
Words in red have been added since your textbook was printed.
8