Answer:
number = int(input("Enter number ")
)
sum = 0
count = 0
for x in range(1, number+1, 2):
sum += x
count += 1
average = sum/count
print("sum = %d"% sum)
print("average = %d"% average)
The range() function conveniently lets you enumerate all odd values from 1 to your number.
It's details view. I hope this help.
Tech a is correct which is the correct answer
Answer:
Check the attached image
Explanation:
the diagram for explaning all the solutions is in the attaged images below.