top of page
Search

PYTHON QUIZ

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Jul 2
  • 1 min read

x = [1, 2, 3, 4]

y = [sum(x[0:i-1]) for i in range(0, 4)]

print(y)


[Running] python3 -u "/Users/name/test/test38.py"

[6, 0, 1, 3]

[Done] exited with code=0 in 0.053 seconds

Python Quiz.
Python Quiz.

 
 
 

1 Comment


Guest
Jul 02

Did you try to run it?

Like
bottom of page