• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
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 Answers
+ 4
More about the issue here: https://code.sololearn.com/c89ejW97QsTN/?ref=app
10th Aug 2020, 10:25 PM
HonFu
HonFu - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Cities Sylines AI Model Clima 1.0
0 Votes
Python coding help
1 Votes
Comparing Lambda with ES6
3 Votes
What company hired front-end developer after taking course in their website?
0 Votes
What are the best things to practice for better logic building?
0 Votes
Gide me the path of Cyber security
1 Votes
What music should i listen to while i code?
0 Votes
System designed to help
1 Votes
Python project
0 Votes
certificate
0 Votes