Home / MCQ Bank / Computer
Computer Lists In Python Difficulty: Medium

What will be the output of the following Python code? a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)

Select the correct option to test your answer:

More Computer Questions

You can organize files by storing them in__________? A ______ is sent to the seller when he is taken back the sold goods What is the purpose of the self keyword in Ruby? Arrange the operators in the increasing order as defined in C#. !=, ?:, &, ++, && Which attribute allows to show an image while downloading a video?