-4

What the problem with my code ? Please help I tried several ide but still get same problem https://i.stack.imgur.com/KPRqA.jpg

3

2 Answers 2

2

Declare a=[] outside the for loop to get all your elements added to your list

1
  • 1
    Thank you very much
    – fari
    Mar 11, 2020 at 23:01
0

What are you trying to do? We can't help if we don't know your end goal.

you can try putting a outside of the loop and set:

for i in range(0, x):

instead of just numbers in a parenthesis.

Not the answer you're looking for? Browse other questions tagged or ask your own question.