2025-02-17 16:52:06 +01:00

14 lines
283 B
Python

def square():
"""returns the square of the number"""
try:
a = input("Entrez un nombre : ")
result = int(a) * int(a)
return result
except ValueError:
print("Le paramètres doit être un nombre !")
return None
print(square())