Raise Error and Loop Program - Python for Beginners

Опубликовано: 20 Апрель 2026
на канале: rory mulcahey
35
1

In this video we will cover how to raise an error exception in a try except clause, as well as continuously running a program with a while loop.

Basic Steps:

Collects user input gathering with a while loop.
Centralize class logic into one class method.
Raise an exception in a class method to return information to the caller.

Python
Pycharm
Try except
Raise ValueError
_init_
initialize
default parameter
@setter
@property
Parameter
Return
Print statements
_main_
Encapsulation