Stop Making this Coding MISTAKE in Python 💀 #python #coding #programming

preview_player
Показать описание
Common mistake every dev make in Python
#Coding #JavaScript #VSCode #Programming #Code #Coding #JavaScript #vscode #Programming #vscode #coding #python #junior #ai #groq #programming
Рекомендации по теме
Комментарии
Автор

If you use Python 3.8 or newer, you'll get a Syntax Warning use '==' instead of 'is' for value comparison.

PengiCode
Автор

That makes so much sense. It isn't saying "do these things match" it is saying "does this reference the exact same data as that"

sambobsam
Автор

The other mistake here is that the code reveals what the password is. Not very secure. You should be comparing some cryptographic hash of the password content. Ideally something with randomization so a predefined table of common passwords can’t crack it.

jacobcohen
join shbcf.ru