0

Why does this program prints "none" at its end, and how do i avoid it?

name = input() n = name.split() def makename(): dot = "..." for ch in name: dot += ch print(dot) print(makename())

2nd Nov 2020, 1:24 PM
KABIR ⚡🇳🇬
KABIR ⚡🇳🇬 - avatar
2 odpowiedzi
+ 5
Don't print returned value since you don't have return value fron function. Defaultly it returns none. So change print(makename()) to just makename()
2nd Nov 2020, 1:38 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna🇮🇳 thanks it worked! 🙂
2nd Nov 2020, 1:57 PM
KABIR ⚡🇳🇬
KABIR ⚡🇳🇬 - avatar