+ 3
Your function is not returning anything, thus returning NONE which what your last print() is printing. The first output is because of print() in the function itself
there are a lot of ways to fix it
Here's one of themđ
https://code.sololearn.com/cFnb6IdHp8un/?ref=app