Where should I put this?

I need a small help!

Well, just now I wanted to add a new function to my python library – py-everything! But I am not sure in which module I should put it? First I thought, ok, it should go into maths. But then I thought it is not really a mathematical operation, you are checking if a number is even or not? I Will, be happy if you helped!

The function takes in a number and returns True if it is even, False otherwise.

So, should I put it in maths or __init__ – the base module?

原文链接:Where should I put this?

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
No matter what label is thrown your way, only you can define your self.
不管你被贴上什么标签,只有你才能定义你自己
评论 抢沙发

请登录后发表评论

    暂无评论内容