Jan-20-2018, 10:46 PM
Thank you for the explanation, I adjusted the code to:
def str_analysis(argstr): if argstr.isdigit(): if int(argstr) >= 1000: print("We have a big number!") else: print("we have a small number.") elif argstr.isalpha(): print("We have all alphabetic!") else: print("We have multiple character type") str_analysis(input("Add string: "))