@@ -274,8 +274,8 @@ Methods are "links" to the class attribute functions. So
274274and when ` stackoverflow.info() ` is called it automatically gets
275275` stackoverflow ` as an argument.
276276
277- In other words, ` Class.method(instance) ` does the same thing as
278- ` instance.method() ` . This also works with built-in classes, for
277+ In other words, ** ` Class.method(instance) ` does the same thing as
278+ ` instance.method() ` ** . This also works with built-in classes, for
279279example ` 'hello'.lower() ` is same as ` str.lower('hello') ` .
280280
281281## Defining methods when defining the class
@@ -286,7 +286,7 @@ it later?
286286``` py
287287>> > class Website :
288288...
289- ... def info (self ): # self is a Website instance
289+ ... def info (self ): # self will be stackoverflow
290290... print (" URL:" , self .url)
291291... print (" Founding year:" , self .founding_year)
292292... print (" Free to use:" , self .free_to_use)
@@ -421,6 +421,8 @@ print("You entered " + word + ".")
421421
422422***
423423
424- You may use this tutorial freely at your own risk. See [ LICENSE] ( LICENSE ) .
424+ You may use this tutorial freely at your own risk. See
425+ [ LICENSE] ( LICENSE ) .
425426
427+ [ Previous] ( modules.md ) | [ Next] ( README.md ) |
426428[ Back to the list of contents] ( README.md#list-of-contents )
0 commit comments