New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Why does <,> etc, doesn't work with functions? Please fix this code.😥😥😌🙂
2 Answers
+ 2
Logical operators work with function calls if your function is returning a value. Here your functions alpha(), beta(), gamma() are not returning anything. They are just printing the counts. To fix this code, just use return instead of print in your functions here.
+ 2
Thanks so much, it is working now