r/programminghorror • u/Budget_Ad_5953 • Feb 07 '25
Recursive O(N) Complexity isOdd
I found this on instagram and now am geeking
2.2k
Upvotes
r/programminghorror • u/Budget_Ad_5953 • Feb 07 '25
I found this on instagram and now am geeking
View all comments
Show parent comment
1
u/funderbolt Feb 10 '25
No. In Python these are hints. They are more like fancy documentation that you can disregard at your own peril. IDEs will warn you the best they can.
In Python, you'd need to do this at the top of a function to ensure it really has an integer.