• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu
+ 2

Why a[0]=1? instead of 3

a=[1,[2,3]] b=a[:] a[0]=3 a[1][1]=5 print(b)

sololearnpython3
10th Aug 2020, 9:22 PM
Vahid Vafaie
Vahid Vafaie - avatar
2 Réponses
+ 4
More about the issue here: https://code.sololearn.com/c89ejW97QsTN/?ref=app
10th Aug 2020, 10:25 PM
HonFu
HonFu - avatar

Vous avez souvent des questions comme celle-ci ?

Apprenez de maniĂšre plus efficace, gratuitement :

  • Introduction Ă  Python

    7.1M apprenants

  • Introduction Ă  Java

    4.7M apprenants

  • Introduction Ă  C

    1.5M apprenants

  • Introduction Ă  HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
My codebits section is full of deleted codes
13 Votes
Ai generated practices
1 Votes
Where did mess up....
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
How can i insert files?
1 Votes
help!!! How to build portfolio? I am in last year of highschool and still noob lol
0 Votes
Hi who can hel me please
0 Votes
Where can I find python and SQL projects to work on for my portfolio that are beginner to intermediate?
1 Votes