Working with files | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Working with files

is there a function that returns the checksum of the file? #Есть ли функция, которая возвращает контрольную сумму файла?

5th Dec 2019, 10:26 PM
Petr
4 Answers
+ 3
bahha🐧 i know it..
5th Dec 2019, 11:06 PM
Petr
+ 2
you can import the hashlib library, and choose any algorithm you want from md5 to sha...
5th Dec 2019, 11:00 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
it's the easiest way to. hashlib has all the functions you need.
5th Dec 2019, 11:05 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
bahha🐧 Only this way?
5th Dec 2019, 11:01 PM
Petr