You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dans les tests qui sont donnés avec le sujet (banking_test1.py && banking_test2.py), l'output c'est "Failed" si on valide l'exercice. Ça prète à confusion.
Dans le test1 le compte est corrompu donc au lieu de ça :
ifbank.transfer('William John', 'Smith Jane', 545.0) isFalse:
print('Success : The bank transfer failed since the accounts were corrupted')
else:
print('Fail : The bank transfer was made even though the accounts were corrupted')
et pour le test2 :
ifbank.transfer('William John', 'Smith Jane', 1000.0) isFalse:
print('Success : The bank transfer failed since the accounts were corrupted')
bank.fix_account('William John')
bank.fix_account('Smith Jane')
ifbank.transfer('William John', 'Smith Jane', 1000.0) isFalse:
print('Fail : The bank transfer failed even though the accounts should have been fixed')
else:
print('Success : The bank transfer was made since the accounts were properly fixed')
else:
print('Fail : The bank transfer was made even though the accounts were corrupted')
The text was updated successfully, but these errors were encountered:
Dans les tests qui sont donnés avec le sujet (banking_test1.py && banking_test2.py), l'output c'est "Failed" si on valide l'exercice. Ça prète à confusion.
Dans le test1 le compte est corrompu donc au lieu de ça :
ce serait mieux de mettre :
et pour le test2 :
The text was updated successfully, but these errors were encountered: