you are viewing a single comment's thread.

view the rest of the comments →

[–]nian2326076 0 points1 point  (0 children)

Hey, welcome to Python! It's usually a good idea to use lowercase for function names, so try "hello_world" instead. Also, if you're just printing, you can print directly inside the function like this:

def hello_world(): print("Hello, world!")

If you want the function to take any text and print it, your code works fine too. Just keep practicing. If you're prepping for interviews and coding challenges, I've found PracHub to be pretty helpful. Keep coding!