+ 4
starmap does not work
I expected output https://code.sololearn.com/c7Xx5OB9MJDD/?ref=app
2 Respuestas
+ 2
It's because of the round parentheses.
This will work:
list(starmap(op,[(m,),(n,)]))
(m) is an expression that results in m, so starmap treats it as an iterable that needs unpacking and tries to pass all letters as function arguments individually.
(m,) is a tuple that contains only m, so it is passed to the function as a single string.
+ 3
Tibor Santa bad trap😱😱😱
Thank u