0

Code :- a,b,*c = 1,2,(),[] ,print(*c) output was:- ()[]

While declaring variable we can't use special symbol except underscore(_) ,so why didn't it show any error ? Plus it was able to carry two value () and[] ,why?

4th Aug 2022, 7:16 PM
Abhinay Singh Bhadouriya
2 Answers
+ 1
I see you're taking Intermediate Python. You'll get it once you learned lesson 5.1 "Tuple unpacking"
5th Aug 2022, 2:39 AM
Ipang
+ 1
Thank you
6th Aug 2022, 12:17 AM
Abhinay Singh Bhadouriya