30903/print-the-odd-and-even-factors-of-a-number-in-python
x = int(input("Enter any number \n")) print("The factors of",x,"are:") for i in range(1, x + 1): if x % i == 0: if i % 2 == 0: print(i," Even") else: print(i," Odd")
Hope this will help!
To learn more, go for Python Master course today.
Thank!
Hello @Khanhh , Use panda to find the value of ...READ MORE
Write a Python program that takes as ...READ MORE
n = list(range(10)) b = list(filter(lambda i:i%2!=0,n)) print(b) READ MORE
Hi, good question. If you are considering ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
down voteaccepted ++ is not an operator. It is ...READ MORE
If you're already normalizing the inputs to ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.