File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,10 @@ Now we can make a Website instance by calling the class.
97
97
>> >
98
98
```
99
99
100
- We can attach more information about stackoverflow to the new Website
101
- instance.
100
+ We can say that ` stackoverflow ` is "a Website instance", "a Website
101
+ object" or "a Website". All of these mean the same thing.
102
+
103
+ Now we can attach more information about stackoverflow to our Website.
102
104
103
105
``` py
104
106
>> > stackoverflow.url = ' http://stackoverflow.com/'
@@ -127,6 +129,7 @@ new Website.
127
129
** attributes** . More specifically, they are ** instance attributes** .
128
130
The biggest difference is that we need to use a dot for setting and
129
131
getting values of attributes, but we don't need that with variables.
132
+
130
133
Modules also use instance attributes for accessing their content. For
131
134
example, when we do ` random.randint ` , ` random ` is a module instance and
132
135
` randint ` is one of its attributes.
Original file line number Diff line number Diff line change @@ -106,6 +106,11 @@ Even though a good tutorial is an important part about learning to
106
106
program, you also need to learn to make your own things. Use what you
107
107
have learned, and create something with it.
108
108
109
+ ## But reading is boring!
110
+
111
+ Yes, I know. You can just try the code examples yourself and read the
112
+ rest of this tutorial only if you don't understand the code.
113
+
109
114
## Summary
110
115
111
116
- Now you should know what programming and programming languages are.
You can’t perform that action at this time.
0 commit comments