IDNLearn.com: Your go-to resource for finding expert answers. Ask any question and get a detailed, reliable answer from our community of experts.
nums = []
while True:
num = float(input("Enter a number: "))
if num <= 0:
break
nums.append(num)
print("The largest number entered was",max(nums))
I wrote my code in python 3.8. I hope this helps.