5. Write a python program to identify all the numbers which are divisible by 8 in between 200 and 500.
One of the example output is:
Expected Answer:
200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,320,328,336,344,352,360,
368,376,384,392,400,408,416,424,432,440,448,456,464,472,480,488,496
Sample Answer:
numbers=[] for i in range(200, 501): if (i%8==0): numbers.append(str(i)) print (','.join(numbers))
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)