Ask coding questions

← Back to all posts
what is wrong with the code
animenolife

i typed the code without any mistakes and it also works in pyCharm, but it says invalid syntax when i add ',' in line 5, and when i remove it says invalid syntax at the end of line 5.
can somebody please tell me what the problem is?

Answered by CodingElf66 [earned 5 cycles]
View Answer
Voters
animenolife
Comments
hotnewtop
CodingElf66

You forgot to add a closing paranthesis ()), that's all.
Can you mark this as answered?

MrVoo

@CodingElf66 I already answered :I

CodingElf66

@MrVoo lolers

MrVoo

You need an extra ), and don't add imports inside functions