Catalog
Catalog
See All
Courses
Level
See All
Beginner
Intermediate
Advanced
Courses
See All
Introduction to Python
Introduction to C
Introduction to C#
Introduction to SQL
Introduction to HTML
Introduction to CSS
Introduction to Java
Introduction to JavaScript
Introduction to C++
Tech for Everyone
Courses
See All
C# Intermediate
Python Intermediate
JavaScript Intermediate
C++ Intermediate
C Intermediate
SQL Intermediate
Game Development with JS
Responsive Web Design
Python for Data Science
Python for Finance
Courses
See All
React + Redux
Angular + NestJS
Python Data Structures
Online Compiler
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Discuss
Blog
Get Pro
Log in
Register
Menu
0
How this program works???
a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)
python
forloop
15th Jul 2020, 11:31 AM
Shreepriya HA
1 Answer
Answer
0
Thank you
15th Jul 2020, 12:00 PM
Shreepriya HA
Answer
Hot today
Is anyone else encountering issues with upvote through the code playground ?
10 Votes
Python bank account balance I need help
1 Votes
Please answer the below yaml question
0 Votes
why in this code the else output will print amd output is like that?
1 Votes
Python data structures : Revenue Growth Project : only 1 testcase is passing
4 Votes
Problem Statement Given two integers a and b, your task is to calculate and print the following four values:
0 Votes
Please help, any idea?
2 Votes
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
1 Votes
https://code.sololearn.com/cXZu5dRDdt9R/?ref=app
0 Votes
Help me wiht python
1 Votes