Find answers to your most challenging questions with the help of IDNLearn.com's experts. Get accurate and detailed answers to your questions from our dedicated community members who are always ready to help.
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.