Apr-08-2018, 01:09 AM
So, this is the final code:
errorlevel = 0 errors = 0 r1 = raw_input("Commands:") word = 'sdddwwx' for i in range(min(len(r1), len(word))): if r1[i] != word[i]: errors += 1 if errorlevel >= errors or errors == 0: print"Good!" else: print errorsThank you for your help.