Sep-06-2019, 05:00 AM
I get "None" at the bottom of my printed result and I don't know where this "None" is coming from.
All works fine. Just really don't need this "None" message in the end. Your help is much appreciated.
Here's my code:
All works fine. Just really don't need this "None" message in the end. Your help is much appreciated.
Here's my code:
def str_analysis(your_input): if your_input.isdigit(): if int(your_input) > 99: print("Big number") elif int(your_input) <= 99: print("Small number") else: pass elif your_input.isalpha(): print("Your message is all Alpha characters") else: print("Your message is neither all Alpha nor all Digits") return check = str_analysis(input("Enter your message: ")) print(check)