Welcome to Westonci.ca, where curiosity meets expertise. Ask any question and receive fast, accurate answers from our knowledgeable community. Get detailed answers to your questions from a community of experts dedicated to providing accurate information. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.
Sagot :
Answer:
hope this helps and mark my ans brainliest if it helped.
Explanation:
def main():
Numbers = []
n = input("Enter the number: ")
while n != 0:
Numbers.append(n)
n = input("Enter the number: ")
if len(Numbers) > 0:
max = Numbers[0]
min = Numbers[0]
for i in range(0, len(Numbers)):
if max < Numbers[i]:
max = Numbers[i]
if min > Numbers[i]:
min = Numbers[i]
print Numbers
print "Largest: ", max
print "Smallest: ",min
main();
Thank you for choosing our service. We're dedicated to providing the best answers for all your questions. Visit us again. Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. Thank you for visiting Westonci.ca. Stay informed by coming back for more detailed answers.