36return decrypted_data.decode()
37
38
39def hash_password(password): 40 """Hashes the given password using a hashing algorithm."""
41 # Hash the password using SHA256
42 hashed_password = hashlib.sha256(password.encode()).hexdigest()
This statement is unreachable, as the control flow will never reach upto this point. Consider removing this part of code or re-evaluating the control flow.
def count_pairs(users):
pairs = 0
for user in users:
if user.type == "student":
pairs += 1
return pairs
pairs /= 2 # <-- Unreachable
def count_pairs(users):
pairs = 0
for user in users:
if user.type == "student":
pairs += 1
pairs /= 2
return pairs