8080 " try:\n " ,
8181 " result = encrypt(test_password)\n " ,
8282 " assert result == expected_hash, f\" Expected {expected_hash}, but got {result}\"\n " ,
83- " print(\" \ud83c\udf89 Great job! Your encryption function works perfectly!\" )\n " ,
83+ " print(\" 🎉 Great job! Your encryption function works perfectly!\" )\n " ,
8484 " return True\n " ,
8585 " except Exception as e:\n " ,
86- " print(\" \u274c Not quite right. Make sure you're using SHA256 and hexdigest()\" )\n " ,
86+ " print(\" ❌ Not quite right. Make sure you're using SHA256 and hexdigest()\" )\n " ,
8787 " print(f\" Error: {str(e)}\" )\n " ,
8888 " return False\n " ,
8989 " \n " ,
121121 " assert users[\" alice\" ] == encrypt(\" newpassword123\" )\n " ,
122122 " assert users[\" alice\" ] != old_hash\n " ,
123123 " \n " ,
124- " print(\" \ud83c\udf1f Excellent! Your function can both add new users and update existing ones!\" )\n " ,
124+ " print(\" 🌟 Excellent! Your function can both add new users and update existing ones!\" )\n " ,
125125 " return True\n " ,
126126 " except Exception as e:\n " ,
127- " print(\" \u274c The add_user function needs some work\" )\n " ,
127+ " print(\" ❌ The add_user function needs some work\" )\n " ,
128128 " print(f\" Error: {str(e)}\" )\n " ,
129129 " return False\n " ,
130130 " \n " ,
146146 " assert check_password(users, \" alice\" , \" password123\" )\n " ,
147147 " assert not check_password(users, \" alice\" , \" wrong\" )\n " ,
148148 " assert not check_password(users, \" bob\" , \" any\" )\n " ,
149- " print(\" \ud83c\udfc6 Perfect! Your password checking system is secure!\" )\n " ,
149+ " print(\" 🏆 Perfect! Your password checking system is secure!\" )\n " ,
150150 " return True\n " ,
151151 " except Exception as e:\n " ,
152- " print(\" \u274c The check_password function needs some work\" )\n " ,
152+ " print(\" ❌ The check_password function needs some work\" )\n " ,
153153 " print(f\" Error: {str(e)}\" )\n " ,
154154 " return False\n " ,
155155 " \n " ,
175175 " assert not add_user_with_requirements(users, \" user2\" , \" short1\" )\n " ,
176176 " assert not add_user_with_requirements(users, \" user3\" , \" nodigits\" )\n " ,
177177 " assert not add_user_with_requirements(users, \" user4\" , \" nocaps123\" )\n " ,
178- " print(\" \ud83c\udfaf Excellent! Your password requirements are working!\" )\n " ,
178+ " print(\" 🎯 Excellent! Your password requirements are working!\" )\n " ,
179179 " return True\n " ,
180180 " except Exception as e:\n " ,
181- " print(\" \u274c Password requirements need adjustment\" )\n " ,
181+ " print(\" ❌ Password requirements need adjustment\" )\n " ,
182182 " print(f\" Error: {str(e)}\" )\n " ,
183183 " return False\n " ,
184184 " \n " ,
220220 " \n " ,
221221 " assert users[\" user1\" ] != encrypt(\" same_password\" )\n " ,
222222 " \n " ,
223- " print(\" \ud83c\udf1f Fantastic! Your global salt system is working!\" )\n " ,
223+ " print(\" 🌟 Fantastic! Your global salt system is working!\" )\n " ,
224224 " return True\n " ,
225225 " except Exception as e:\n " ,
226- " print(\" \u274c Global salt implementation needs some work\" )\n " ,
226+ " print(\" ❌ Global salt implementation needs some work\" )\n " ,
227227 " print(f\" Error: {str(e)}\" )\n " ,
228228 " return False\n " ,
229229 " \n " ,
253253 },
254254 "nbformat" : 4 ,
255255 "nbformat_minor" : 5
256- }
256+ }
0 commit comments