0

why is output in tuple?

numbers = [1,2,3] a,b,c = numbers lists = c,b,a print(lists) #why is output in tuple?

18th Jul 2022, 1:47 PM
Khalif BabyđŸ‘¶
Khalif BabyđŸ‘¶ - avatar
1 Answer
+ 2
c, b, a is a tuple. It is equivalent to (c, b, a)
18th Jul 2022, 1:50 PM
Lisa
Lisa - avatar