Courses
Log inStart Learning AI
Courses
Log inStart Learning AI
0

a=[1,2,3,4]. b=[sum(a[0:x+1]) for x in range(0,len(a))]

Print (b). What is the output of this code and explain the code

python3
20th Jun 2020, 7:30 AM
tharun reddy
tharun reddy - avatar
2 Answers
0
answer plzzz
20th Jan 2023, 6:30 AM
Divya Agrawal

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Best language?
0 Votes
Anyone have song names? Comment your favorites here for a project im working on
1 Votes
Bro can you fix yt error?
0 Votes
I want to know how to make an Payment App like what I need to learn I need some guidance
0 Votes
Need suggestions to learn AI and ML
1 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Java full stack
0 Votes
Duration of heart refilling
0 Votes
Why isn't a linked video not working
0 Votes