Merge pull request #3390 from InspectorCaracal/patch-21

Fix tutorial code block
This commit is contained in:
Griatch 2024-01-08 20:46:15 +01:00 committed by GitHub
commit e37419972e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.