CHANGE_TOTAL = (float(input('type in the change total ')))
def main():
value_1 = (float(input('type in the first value ')))
value_2 = (float(input('type in the second value ')))
value_3 = (float(input('type the third value ')))
values_average(value_1,value_2,value_3)
def values_average(a,b,c):
total = (a+b+c)
if total > CHANGE_TOTAL:
print ('there\'s not change availibility at the moment plase wait')
main()
else:
print ('your change is being process plase wait a moment')
change_due(total)
def change_due(items_cost):
input ('"press enter"')
money_received = (float(input('type in the amount of money received ')))
change = (money_received - items_cost)
print ('your change is', change)
change_total_aft_trans(change)
def change_total_aft_trans(a):
change_left = (CHANGE_TOTAL - a)
print ('the change left is', change_left)
main()
c'est la chose que vous pouvez voir dans le funtion ¨values_average lorsque je tente de boucler le tout sur en appelant le function¨after la PRINCIPAuX instruction if il ne me demande pas de taper une nouvelle valeur CHANGE_TOTAL, ce que je voudrais faire. aucun conseil ? merci d'avanceappeler une fonction sans laisser à l'entrée variable globale
Veuillez indenter votre code correctement. Il est impossible de lire Python sans indentation correcte. –
je voulais dire CHANGE_TOTAL –
Ne postez pas de corrections dans les commentaires. * Corrigez la question elle-même en l'éditant *. –