30
loading...
This website collects cookies to deliver better user experience
It's easy to write code. It's challenging to write good code.
function addNumbers(num1,num2){
return num1 + num2;
}
It’s important not to abuse it, duplication is not for code, but for functionality.
def find_odd():
number = int(input(Enter a number..)) # Get a number
if number % 2 == 0: # Divide number by 2. If no remains,
print("This is a even number") # Print it is not a odd number
else :
print("Here is the odd number!") # If 1 remains, print it is a odd number
30