• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
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)

pythonforloop
15th Jul 2020, 11:31 AM
Shreepriya HA
2 Respostas
0
Thank you
15th Jul 2020, 12:00 PM
Shreepriya HA

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Code suggestions
3 Votes
Sololearn Theme Changing
0 Votes
I am new in python
0 Votes
please who can help with some key points about web design
0 Votes
How to access private creations
0 Votes
From Tomorrow my AI and Data science course will be started what should I do to make it best for my own self and Development in
0 Votes
what do you call knowing something without realizing you know it?
0 Votes
Can we collab?
1 Votes
Calculator
0 Votes
working with list > Game Machine
0 Votes