python TypeError: frozenset expected at most 1 arguments, got 4 -
i'm getting error when trying make frozen set:
class transcriber: dna_bases = frozenset('a','t','g','c') ...
and traceback:
~/python/project5$ python wp_proj5.py traceback (most recent call last): file "wp_proj5.py", line 5, in <module> class transcriber: file "wp_proj5.py", line 7, in transcriber dna_bases = frozenset('a','t','g','c') typeerror: frozenset expected @ 1 arguments, got 4
what wrong here? can't initialize frozenset more 1 string?
you need list
frozenset(['a','t','g','c'])
you can read here: http://docs.python.org/2/library/stdtypes.html#frozenset
most common 1 list.
Comments
Post a Comment