Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2023-12-06 19:16:50 +01:00 committed by GitHub
parent 78f0637e29
commit ae79228b99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,6 +224,9 @@ print(instance_b.a) # -> []
```
### [@property()](https://docs.python.org/3/library/functions.html#property)
{: .topic-optional}
This is an optional topic!
If a variable starts with one \_ this tells us that it is "private" and we shouldn't touch it directly with our dirty hands from the outside. However, we can use @property to control the communication with the outside world: