#๐ error "hello world!" help pls
16 messages ยท Page 1 of 1 (latest)
@quaint grotto
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Why is your question an image of text.
Also, the error says it's looking for a function called hello. What is the code you're submitting? Do you have a function called hello?
Could the function be the variable? e.g. health = "Hello World!"
No. A function is defined using def.
(Usually)
def some_function():
pass
some_function is a function.
A function is code that's meant to be executed later. For the above function, you'd call it to run the code, and to call it, you'd do some_function()
They're presumably wanting you to write a function that prints Hello World when it's called.
Thank you very much brother ๐ญ
I would recommend studying functions well. They are extraordinarily important to understand. You cannot write or understand code without understanding functions.
Yes, I'm really new to programming and I don't know anything, I thank you for your recommendation, now I'll go study them, don't you know of any video on youtube or page that shows them?
You're welcome.
And not off the top of my head. When in doubt though, Real Python is generally quite good:
thx
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.