Answer:
largest = None
for i in range(0,6):
d = int(input("Enter a number: "))
if not largest or d > largest:
largest = d
print("Largest: " + str(largest))
Step-by-step explanation:
Worked for me!!! :)
In python:
lst = ([])
largest = 0
while len(lst) != 6:
user_number = int(input("Enter a number: "))
lst.append(user_number)
for i in lst:
if i > largest:
largest = i
print(largest)
I hope this helps
4.9m questions
6.4m answers