@@ -57,23 +57,23 @@ def check_password_length() -> None:
5757 this function categorises the inputted password as very weak, weak, good, or strong depending on its length.
5858 '''
5959 if len (inputted_password ) == 1 :
60- second_label .configure (text = 'Very weak length: Your password has only ' + str (len (inputted_password )) + ' character.' )
60+ second_label .configure (text = f 'Very weak length: Your password has only { str (len (inputted_password ))} character.' )
6161 second_label .grid (column = 0 , row = 4 , sticky = 'w' )
6262
6363 elif 0 < len (inputted_password ) <= 7 :
64- second_label .configure (text = 'Very weak length: Your password has only ' + str (len (inputted_password )) + ' characters.' )
64+ second_label .configure (text = f 'Very weak length: Your password has only { str (len (inputted_password ))} characters.' )
6565 second_label .grid (column = 0 , row = 4 , sticky = 'w' )
6666
6767 elif 8 <= len (inputted_password ) <= 10 :
68- second_label .configure (text = 'Weak length: Your password has only ' + str (len (inputted_password )) + ' characters.' )
68+ second_label .configure (text = f 'Weak length: Your password has only { str (len (inputted_password ))} characters.' )
6969 second_label .grid (column = 0 , row = 4 , sticky = 'w' )
7070
7171 elif 11 <= len (inputted_password ) <= 13 :
72- second_label .configure (text = 'Good length: Your password has ' + str (len (inputted_password )) + ' characters.' )
72+ second_label .configure (text = f 'Good length: Your password has { str (len (inputted_password ))} characters.' )
7373 second_label .grid (column = 0 , row = 4 , sticky = 'w' )
7474
7575 elif 14 <= len (inputted_password ):
76- second_label .configure (text = 'Strong length: Your password has ' + str (len (inputted_password )) + ' characters.' )
76+ second_label .configure (text = f 'Strong length: Your password has { str (len (inputted_password ))} characters.' )
7777 second_label .grid (column = 0 , row = 4 , sticky = 'w' )
7878
7979 def check_password_complexity () -> None :
@@ -134,7 +134,7 @@ def check_password_complexity() -> None:
134134 else :
135135 output = output + 'and ' + str (missing_feature )
136136
137- third_label .configure (text = 'Not complex: Your password is missing ' + output + ' .' )
137+ third_label .configure (text = f 'Not complex: Your password is missing { output } .' )
138138 third_label .grid (column = 0 , row = 5 , sticky = 'w' )
139139
140140 else :
0 commit comments