138k views
2 votes
Write an expression that executes the loop while the user enters a number greater than or equal to 0.

User ToddT
by
4.9k points

1 Answer

4 votes

num = 1

while num >= 0:

num = int(input("Enter a number greater than or equal to 0: "))

I hope this helps!

User Austin Harris
by
5.1k points