def check(num): if num % 2 == 0: print("even") else: print("odd") check(3)check(2)
Standard input is empty
odd even
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!