ne pas comprendre comment obtenir la boucle d'arrêter et de continuer/répéter aussi, ne pas comprendre comment obtenir la deuxième partie de booléen travailleren boucle et booléenne
monthly_investment = float(input("Enter monthly investment:\t"))
while monthly_investment < 1:
print("Entry must be greater than 0")
yearly_interest_rate = float(input("Enter yearly interest rate:\t"))
while yearly_interest_rate < 1 and yearly_interest_rate < 16:
print("Entry must be greater than 0 and less than or equal to 15")
https://www.tutorialspoint.com/python/python_while_loop.htm –
je comprends la boucle tout simplement pas comment revenir en arrière si la valeur est o – Nimkora
Retour à où? Si vous voulez faire quelque chose en fonction d'une condition, utilisez les instructions –