![]() *(a, b), = 'this' # ERROR - too many values to unpack *(a, b) = 'this' # ERROR - target must be in a list or tuple *(a,b) = 'XY' # ERROR - target must be in a list or tuple *(a,b) = 1,2 # ERROR - target must be in a list or tuple (a,b), *c = 1,2,3 # ERROR - 'int' object is not iterable (a,b),c = 1,2,3 # ERROR - too many values to unpack ![]() *a, = (1) # ERROR - 'int' object is not iterable *a = # ERROR - target must be in a list or tuple ![]() *a, = 1 # ERROR - 'int' object is not iterable *a = (1,2) # ERROR - target must be in a list or tuple ![]() *a = 1 # ERROR - target must be in a list or tuple (a,b), c = "XY" # ERROR - need more than 1 value to unpack (a,b), c = "XYZ" # ERROR - too many values to unpack (this is a long list) a, b = 1, 2 # simple sequence assignmentĪ, b = # list asqignmentĪ, b = range(1,5,2) # any iterable will do Note that some expressions are repeated to present the "context". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |