r/codehs • u/Obvious-Station-6496 • Mar 21 '23
Python Code Function won't pring
I'm trying to run a function which is supposed to print a sentence within the function, but for some reason all it prints is <function (function name)> instead of running it. Is there any way I can fix this?
4
Upvotes


2
u/Obvious-Station-6496 Mar 21 '23
Don't mind the typo in the title 😅
2
u/segosegosego Mar 21 '23
If the function prints what you want, call the function instead of printing it.
GameStart()
https://www.freecodecamp.org/news/how-to-call-a-function-in-python-def-syntax-example/amp/
1
u/ooga_booga_hahaha Mar 21 '23
r/screenshotsarehard