Simply:
a,b = 'abc', [20,20]
If you removed the asterix, your code would have worked
More Related Contents:
- How does str.startswith really work?
- Converting string to tuple without splitting characters
- Unable to use convert strings into integers for a for loop
- Printing the number from a list and its square on the same line in python3 [closed]
- Python3 – create global variable(list) from function
- How to sort a list/tuple of lists/tuples by the element at a given index?
- How are tuples unpacked in for loops?
- Count frequency of words in a list and sort by frequency
- Are tuples more efficient than lists in Python?
- How to convert comma-delimited string to list in Python?
- Calling filter returns [duplicate]
- a mutable type inside an immutable container
- Python – TypeError: ‘int’ object is not iterable
- Check if all elements of a list are of the same type
- Explicitly select items from a list or tuple
- Converting a list of tuples into a dict
- How to compare a list of lists/sets in python?
- Find an element in a list of tuples
- How to convert list of tuples to multiple lists?
- How to make a custom object iterable?
- Python range() and zip() object type
- How to convert nested list of lists into a list of tuples in python 3.3?
- What does *tuple and **dict mean in Python? [duplicate]
- List of Tuples to DataFrame Conversion [duplicate]
- Sort a list of tuples depending on two elements [duplicate]
- “TypeError: ‘type’ object is not subscriptable” in a function signature
- Deleting consonants from a string in Python
- python – get list of tuples first index?
- How to convert only numbers in a mixed list into float
- In what case would I use a tuple as a dictionary key? [closed]