Q. What is the output of the following code?


numbers = list( range(0, 51, 4))

results = []

for number in numbers:

    if not number % 3:

        results.append(number)

print(results)



Answer =

[0, 12, 24, 36, 48]
>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post