This part made me wondering why is it there during the Udemy course?
The price is already set as a property on line 16, calculated from item prices. If the setter is ever used it will end up in RecursionError so I think it can be completely removed (and addressed in the video) as the code is valid without it.
This part made me wondering why is it there during the Udemy course?
The price is already set as a property on line 16, calculated from item prices. If the setter is ever used it will end up in RecursionError so I think it can be completely removed (and addressed in the video) as the code is valid without it.