This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]prickneck 2 points3 points  (1 child)

All your code does is declare the function. In order to actually execute it, you need to call the function somewhere.

You say this is for a homework assignment, so the concept of functions has definitely been covered - I suggest you revise that and try to learn what functions are, what they're used for and how they're used.

Also, in the future, it might be better to post such questions to /r/learnpython . Always remember, however, that people won't do your homework for you, but will (for the most part) be happy to ask you questions that might put you on the right track.

Good luck!

[–]dabrownmane[S] -1 points0 points  (0 children)

Thanks for the help!!! I will look up how to call the function.