0
A is a list of numbers from which the multiples of 3 are to be omitted and print those numbers which are not multiple of 3.
Input format: The first line contains the numbers of list A separated by a space. Output format: Print the numbers (which are not multiples of 3) in a single line separated by a space.
5 Antworten
+ 8
Sounds like homework... 📖
Have you tried to solve it?
+ 5
Sayan Das You got everything right, but the print statement does not need the asterisk. Remove it and it will work :)
+ 2
and it can be done in 1 line of code.
+ 1
check this discussion https://www.sololearn.com/Discuss/1691075/?ref=app
0
Yeah it is a question from my assignment. I've tried with this-
https://code.sololearn.com/c3pY8kNv651q/?ref=app
But the last line throws an error as integers are not iterable. I'm not sure how to write the code for the proper output format.