Code:
print("--------------------")
print("---- Exercice 3 ----")
print("--------------------\n")

# print(f"24 a {count_divisors_of(24)} diviseurs")
# divisors_of_24 = divisors_of(24)
# print(f"Les diviseurs de 24 sont {divisors_of_24}")
# print(f"Leur somme est {sum_of(divisors_of_24)}")

# show_perfect_numbers_up_to(1000)

print("\n")
print("--------------------")
print("---- Exercice 4 ----")
print("--------------------\n")


# luke = Person(0, "Luke", 19)
# han = Person(1, "Han", 29)
# chewie = Person(2, "Chewbacca", 200)
# anakin = Person(3, "Anakin", 42)
# yoda = Person(4, "Yoda", 896)
# jabba = Person(5, "Jabba", 600)

# han.best_friend = chewie
# han.worst_enemy = jabba
# chewie.best_friend = han
# luke.worst_enemy = anakin
# anakin.worst_enemy = anakin
# jabba.worst_enemy = han
Last modified: Monday, 25 March 2024, 17:01