Ask coding questions

← Back to all posts
why?
gumark

i did this code, but it doesent work

m,n=map(split(int(input())))

someone tell me why?

Answered by MrVoo [earned 5 cycles]
View Answer
Voters
gumark
Comments
hotnewtop
MrVoo

What error do you get?

gumark

@MrVoo Traceback (most recent call last):
File "main.py", line 34, in <module>
m,n=map(split(int(input())))
NameError: name 'split' is not defined

MrVoo

@gumark Split is a method, not a function

gumark

@MrVoo wtf does that mean

MrVoo

@gumark Function: bonk(), Method: x.bonk()

gumark

@MrVoo what does that mean

MrVoo

@gumark -.- .split() is used like this: 'string'.split('i'). It returns a list