Skip to content
pythonholics.
Pythonholics / Notebook

Objects and Class

It’s time to learn about core functionality of Python programming language and that is Python objects and classes. In this lesson you’ll le...

Read article →
Pythonholics / Notebook

Namespaces and Scope

Variable name also called identifier is simply a name given to objects. Everything in Python is an object. So name is a way to access speci...

Read article →
Pythonholics / Notebook

Assertions

An assertion is a sanity-check that you can turn on or turn off when you have finish testing the program. An expression is tested, and if t...

Read article →
Pythonholics / Notebook

Rasing Exception

You can use raise exception by using the raise statement. print 1 raise ValueError print 2 1 ValueError Example:...

Read article →
Pythonholics / Notebook

Exceptions Handling

To handle exceptions, and to call code when an exception occurs, you can use try/except statement. The try block contains code that might t...

Read article →