vendredi 18 janvier 2019

Write and if-elif-else statement that [on hold]

Write an if-elif-else statement that...

decrements x by 5 if x is greater than 20, increments x by 5 if x is less than 10, and multiplies x by 5 otherwise. (In this challenge, you can assume x is already defined before your code is run.)

First question ever! I am doing this through a python trinket so the error it's giving me isn't helping much either

Aucun commentaire:

Enregistrer un commentaire