# Complete Python Mastery course Section 7 lesson 11

**URL:** <https://forum.codewithmosh.com/t/complete-python-mastery-course-section-7-lesson-11/17637>\
**Category:** Python\
**Created:** [January 12, 2023, 2:44pm UTC](https://forum.codewithmosh.com/t/complete-python-mastery-course-section-7-lesson-11/17637 "2023-01-12T14:44:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gk65](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@gk65](https://forum.codewithmosh.com/u/gk65)\
**Post date:** [January 12, 2023, 2:44pm UTC](https://forum.codewithmosh.com/t/complete-python-mastery-course-section-7-lesson-11/17637/1 "2023-01-12T14:44:52Z")

</div>

Hi, I’d like to get answers to the 2 following questions about the course in subject, Section 7-Classes, lesson n.11- Properties:

1. with the final version of the code, that use the @property decorator, I still can see the internal variable product.\_\_price in the list, also if hidden by two underscores:

2. if I comment the @price.setter section, I get an error because the constructor can’t set the value of the price:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/6/634781f36833a34b90434000269e6e26c14eb473.png)

This is the version of my VSCode:  
Version: 1.74.2 (user setup)  
Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161  
Date: 2022-12-20T10:29:14.590Z  
Electron: 19.1.8  
Chromium: 102.0.5005.167  
Node.js: 16.14.2  
V8: 10.2.154.15-electron.0  
OS: Windows\_NT x64 10.0.22621  
Sandboxed: No

Thanks in advance for your kind help.  
Giacomo  
(Italy)

---

<div class="post-metadata">

**Author:** ![AzharUddinSheikh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/azharuddinsheikh/32/5561_2.png) [@AzharUddinSheikh](https://forum.codewithmosh.com/u/AzharUddinSheikh)\
**Post date:** [January 13, 2023, 3:55pm UTC](https://forum.codewithmosh.com/t/complete-python-mastery-course-section-7-lesson-11/17637/2 "2023-01-13T15:55:45Z")

</div>

you did it wrong

```auto
def __init__ (self,price):
    #self.price = price    
    self.__price = price

```

---

<div class="post-metadata">

**Author:** ![gk65](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@gk65](https://forum.codewithmosh.com/u/gk65)\
**Post date:** [January 16, 2023, 10:13am UTC](https://forum.codewithmosh.com/t/complete-python-mastery-course-section-7-lesson-11/17637/3 "2023-01-16T10:13:55Z")

</div>

Yes, you’re right, thanks a lot!
