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())
2 Antworten
+ 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()
+ 1
Jayakrishna🇮🇳 thanks it worked! 🙂