publish solutions
This commit is contained in:
@@ -1 +1,13 @@
|
||||
## Écrivez votre code ici !
|
||||
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())
|
||||
|
||||
Reference in New Issue
Block a user