0

Function for dictionary

Why it is not adding new data to existing dictionary? Please, if anybody can explane https://code.sololearn.com/c2XD4sz0M1yX/?ref=app

21st Dec 2019, 5:48 PM
Оксана Кувыркова
Оксана Кувыркова - avatar
6 Antworten
+ 2
Оксана Кувыркова There is a very simple reason: The function does not have a return statement.
21st Dec 2019, 6:15 PM
Seb TheS
Seb TheS - avatar
+ 1
It has a weird error with whitespaces, here's the whitespace-fixed version: https://code.sololearn.com/cozqZt61O4qN/?ref=app
21st Dec 2019, 6:11 PM
Seb TheS
Seb TheS - avatar
+ 1
Seb TheS ow, thank you. Yuhuuu! It is working!
21st Dec 2019, 6:16 PM
Оксана Кувыркова
Оксана Кувыркова - avatar
0
I don’t think you can add onto the library because they are on the servers of sololearn try this code on your computer to see whether or not the code is broken.
21st Dec 2019, 5:58 PM
Brave Tea
Brave Tea - avatar
0
Brave Tea It is, i brought it here only for a question, i don't cod in sololearn, i use pycharm. But it showes None as a result
21st Dec 2019, 6:00 PM
Оксана Кувыркова
Оксана Кувыркова - avatar
0
Seb TheS because i copied from the self mail. Thank you for fixing. But it still has problem. It is not addind. So if anybody can tell me why...
21st Dec 2019, 6:13 PM
Оксана Кувыркова
Оксана Кувыркова - avatar