My code is this:
def hello():
return: ‘Hello World’
(I’ve tried a lot of other ways)
But it always giving me this error:
We received the following error when we ran your code:
.usr.local.lib.python3.11.site-packages._pytest.python.py:618: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
.usr.local.lib.python3.11.site-packages._pytest.pathlib.py:533: in import_path
importlib.import_module(module_name)
.usr.local.lib.python3.11.importlib.__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
.usr.local.lib.python3.11.site-packages._pytest.assertion.rewrite.py:168: in exec_module
exec(co, module.__dict__)
.mnt.exercism-iteration.hello_world_test.py:8: in <module>
from hello_world import (
E File ".mnt.exercism-iteration.hello_world.py", line 2
E return: 'Hello World'
E ^
E SyntaxError: invalid syntax
I would love to start with this platform and more languages but i cannot pass that spot, I’d appreciate your help so much, thank you.