Q. What will be the output of the following code snippet ?


values = []

for i in range (1,4):

    values.append(i)

    print (values)


Answer :-

[1]
[1, 2]
[1, 2, 3]

>>>

Post a Comment

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

Previous Post Next Post