All posts by Tuna Peyo

Find files on disk

Jul 26,97

Python looks for files using path information from three sources: environment variables – environment variables (such as PYTHONPATH) that contain …

Read More

Import modules

Jul 25,97

The most common way to create a module is to define a file with the .py extension that will contain …

Read More

What are modules?

Jul 24,97

Modules in Python are separate code groupings which packages program code and data for reuse. Since modules are separate files, …

Read More

Nest exception handling statements

Jul 23,97

Sometimes you need to place one exception-handling statement inside another. This process (called nesting) is often used in situations when …

Read More

Raise exception

Jul 23,97

You can manually throw (raise) an exception in Python with the keyword raise. This is usually done for the purpose …

Read More

Catch specific exceptions

Jul 23,97

We’ve already mentioned that catching all exceptions with the except clause and handling every case in the same way is …

Read More
Geek University 2022