hi
how to test that a number is even or odd?
plz tell the function and library to be imported.
hi
how to test that a number is even or odd?
plz tell the function and library to be imported.
Hi Sagar,
This is not a PyS60 focussed question, its more into core Python.
You can make your own fuction easily which can check if a given number is even or odd.
Hope that helps,Code:def check(number): if number%2==0: print "Even Number" else: print "Odd Number"
Best Regards,
Croozeus
Pankaj Nathani
www.croozeus.com
A question has been moved to http://www.developer.nokia.com/Commu...-from-a-string, this redirection will be removed after a couple days.