0
Python Functions
str1=input(âname: â) Def func(a): For i in a: Print(i,end=â â) Print(func(str1)) Answer is: a b c None How can I change the code so I donât get âNoneâ in answers?
2 Answers
0
Remove print() from print(func(str1)).
Reason: Your function was returning None.
0
Thanks!