0
Value "none" keeps being returned
I have this problem in my ASCII conversion project in Which I invoke a class method. the method works perfectly, the only problem is getting rid of the "none" return type at the end. I've tried returning the name, but then the method doesn't iterate properly: could someone help? https://code.sololearn.com/cy5ysFFD54w0/?ref=app
1 Antwort
+ 2
None is result of print(method which return nothing), namely, all your numbers are printed by the method, and the method has no returned value, by default it is None. just remove all print , and use just user.method().