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.

16th Feb 2019, 5:57 PM
Sayan Das
Sayan Das - avatar
5 Antworten
+ 8
Sounds like homework... 📖 Have you tried to solve it?
16th Feb 2019, 6:05 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
Sayan Das You got everything right, but the print statement does not need the asterisk. Remove it and it will work :)
17th Feb 2019, 8:44 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
and it can be done in 1 line of code.
16th Feb 2019, 7:23 PM
Edward
Edward - avatar
17th Feb 2019, 8:29 AM
Edward
Edward - avatar
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.
17th Feb 2019, 4:29 AM
Sayan Das
Sayan Das - avatar