samedi 21 décembre 2019

how would I get this program to take input again for an unlimited amount of times after the output is displayed the first time?

num = float(input('enter a number: '))

if num > 0:
    print('positive number')
elif num < 0:
    print('negative number')
elif num == 0:
    print('number is neither negative nor positive')

Aucun commentaire:

Enregistrer un commentaire