Answer to Question #199050 in Python for kolsuz

Question #199050

Write a function even_int that consumes an integer and produces "Even" if it is even and

"Odd" otherwise. You should use if and else for the two cases.



1
Expert's answer
2021-05-29T01:57:16-0400
def even_int(n):
    if n%2==0:
        print("Even")
    else:
        print("Odd")
        
if __name__ == '__main__':
    even_int(3)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS