How this program works???
a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)
Problem Statement Given two integers a and b, your task is to calculate and print the following four values:
Please help, any idea?
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
Help me wiht python