What is Python, and how is it different from other scripting languages? What is the philosophy behind the Python language? Which version of Python is covered in this course?
- [Instructor] Python is a modern, object-oriented scripting language. Python was developed in the late 1980s by Dutch research programmer Guido van Rossum. Guido wrote the first Python interpreter over his Christmas holiday in 1989. He chose the name Python as a reference to Monty Python's Flying Circus. Guido remains Python's principal author to this day, and the Python community affectionately refers to him as BDFL, Benevolent Dictator For Life. There's a core philosophy behind the Python language, which includes the following statements: Beautiful is better than ugly.
It's always a good idea to make your code elegant and readable. Explicit is better than implicit. Don't make your readers guess what your code does, make it obvious. Simple is better than complex. If you can make it simple, do. Complex is better than complicated. If complexity is necessary, don't complicate it. Readability counts. As a casual reader with a good understanding of the Python language, you should be able to understand the code with a minimal amount of effort.
For the complete list, simply type Import This into any Python interpreter. Python 3 is very close to Guido's ideal vision for Python. Code written for Python 2 must be ported for use with Python 3. All data types, including functions and classes, are now built on Python's object model. In Python 2, print was a keyword, and it didn't require parentheses. In Python 3 it is a function, and it does require parentheses.
Python 2 had separate types for integers and long integers. Now there is just one integer type. Python 2 had separate types of strings for Unicode, Ascii, and APID data. All text is now Unicode, and there's a separate APID data type. This course teaches Python 3. There's a lot of legacy code written for Python 2, and it may be important to maintain it for a while. As I record this course, Python 3 has been around almost 10 years, and the amount of legacy code is diminishing.
I strongly recommend that you write new code using Python 3 exclusively. Python is a rich language, and it would be impossible for me to cover all of it in the time allotted for this course. The online documentation is both accessible and exhaustive. I recommend you become familiar with it. Python is a very powerful and versatile programming language. It's supported on virtually all common operating systems and it's easy to learn and to support. In the rest of this course, I'll show you the essentials of Python, so you may develop quick and easy solutions to common problems, as well as larger, more complex interactive systems.
- Python anatomy
- Types and values
- Conditionals and operators
- Building loops
- Defining functions
- Python data structures: lists, tuples, sets, and more
- Creating classes
- Handling exceptions
- Working with strings
- File input/output (I/O)
- Creating modules
- Integrating a database with Python db-api
Skill Level Intermediate
Python: Programming Efficiently (2017)with Michele Vallisneri2h 15m Intermediate
2. Language Overview
3. Types and Values
8. Structured Data
11. String Objects
12. File I/O
13. Built-in Functions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.