mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
fix outdated tutorial code block
This commit is contained in:
parent
7a7416b084
commit
1bcbcfec26
1 changed files with 4 additions and 4 deletions
|
|
@ -98,11 +98,11 @@ multi-line interpreter.
|
|||
You now only need to import once to use the imported function over and over.
|
||||
|
||||
> from world.test import hello_world
|
||||
> hello_world()
|
||||
> hello_world(me)
|
||||
Hello World!
|
||||
> hello_world()
|
||||
> hello_world(me)
|
||||
Hello World!
|
||||
> hello_world()
|
||||
> hello_world(me)
|
||||
Hello World!
|
||||
> quit()
|
||||
Closing the Python console.
|
||||
|
|
@ -418,4 +418,4 @@ We will get back to the `objects.py` module in the [next lesson](./Beginner-Tuto
|
|||
|
||||
We have created our first dragons from classes. We have learned a little about how you _instantiate_ a class into an _object_. We have seen some examples of _inheritance_ and we tested to _override_ a method in the parent with one in the child class. We also used `super()` to good effect.
|
||||
|
||||
We have used pretty much raw Python so far. In the coming lessons we'll start to look at the extra bits that Evennia provides. But first we need to learn just where to find everything.
|
||||
We have used pretty much raw Python so far. In the coming lessons we'll start to look at the extra bits that Evennia provides. But first we need to learn just where to find everything.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue