#try to avoid input function a = ("123@abc","hello","welcome","@@@@@@","learn python","good morning") for i in a: print(a[i],len(a[i]))
Click the run button. Try to avoid input() function.