Hi, I am new to Python and from non programing backgroud. Just 1 week back i have started python online course and started practicing exercises. please help me by guiding me how to write a functions and how to decide what function needs to be used in what surcmstances.
also iam getting error for below code:
num = (input("Eenter a Number: "))
mod = (num) % 2
if mod > 0:
print("is odd number.")
else:
print("is even number.")
error is : TypeError: not all arguments converted during string formatting