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
8.6k 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
8.7k points