Python Multiple Choice Questions And Answers
Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:
List of Programming Full Forms
a=[1,2,3,4]
b=[sum(a[0:x+1]) for x in range(0,len(a))]
print(b)
- 10
- [1,3,4]
- 4
- [1,3,6,10]
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
- Hello foo and bin
- Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)
- Error
- None of the above