Iambaby Iambaby - 2 years ago 99
Python Question

Why does it say the printed output is longer?

I'm trying to make a small program that prints the sum of numbers from 1 to 101 that are divisible by 5. I tried this and the output I get is just one line, but the site says the length of my printed output is 47, and it's longer than the instructor's printed output which is 4.

Edx-introduction to python

Answer Source

Don't print "the total sum of numbers divisible by 5 is". Just print the number. The checker doesn't like the English message.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download