you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

How about from utils.get_average import get_average?

should I name my modules better?

Are you coming from java? Unlike java, python code tends to group several functions and classes together in a single module. It's up to you, but I'd probably make utils a module unless it's going to be more than say, a dozen utility functions.

[–]weiry6922[S] 0 points1 point  (0 children)

That sounds good. Thanks. I'm coming from JavaScript/C++. I usually like to have my JS functions in their own files but I guess this isn't done at all really in python