GUVI
Back

Want answers to these probem

Created 3 years ago
76 Views
1 Comments
AnkurSrivastava
@AnkurSrivastava
AnkurSrivastava
@AnkurSrivastavaProfile is locked. Login

Hello friends, Can you please give me the answers to these problems:

1.) x,y=y

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

TypeError: cannot unpack non-iterable int object

Why this problem is occurring. What does it mean?

2.) x=y,y,y

>>> print(x,y)

(3, 3, 3) 3

>>> type(x)

<class 'tuple'>

What data type is tuple and how I am getting this output?

Comments
Please login to comment.
 
Powered by habitate.io Habitate