Answer to Question #180479 in Python for chinna

Question #180479

For this task, you are to write a Python code that asks the user to enter 2 or more integers as a string, to be entered on one line, separated by one zero. If there are more than one zero, then these will be a part of the number. The program then finds the even numbers, computes and prints out the average. See the below example:


num = input("Enter your number. ")

Assume the user entered "2040304405", then the summation of even numbers is 2+4+44=50, and the average is 50/3=16.6


INPUT


2040304405


200400604405


EXPECTED OUTPUT


2+4+44=50


50/3= 16.6


20+40+ 6+44=110


110/4=27.5


1
Expert's answer
2021-04-12T13:55:57-0400
Dear chinna, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

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