Une indentation doit être un multiple de 4 espaces

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2021-01-26 16:26:16 +01:00
parent 461a0dac34
commit 3d3539930a
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 17 additions and 17 deletions

34
main.py
View File

@ -45,39 +45,39 @@ def calcul(a, b, c, operation = '+'):
L'opération peut être +, -, *, /, &, |, ^, % ou l'un de ses alias anglais.
"""
if operation == '+':
result = a + b
result = a + b
if operation == 'sum':
result = a + b
result = a + b
if operation == 'add':
result = a + b
result = a + b
if operation == '-':
result = a - b
result = a - b
if operation == 'sub':
result = a - b
result = a - b
if operation == '*':
result = a * b
result = a * b
if operation == 'mul':
result = a * b
result = a * b
if operation == 'prod':
result = a * b
result = a * b
if operation == '/':
result = a / b
result = a / b
if operation == 'div':
result = a / b
result = a / b
if operation == '&':
result = a & b
result = a & b
if operation == 'and':
result = a & b
result = a & b
if operation == '|':
result = a | b
result = a | b
if operation == 'or':
result = a | b
result = a | b
if operation == '^':
result = a ^ b
result = a ^ b
if operation == 'xor':
result = a ^ b
result = a ^ b
else:
result = a % b
result = a % b
return c == result