# A1 import random random.seed(123) mylist=[] for i in range(10): x = round(random.uniform(-0.1, 0.1),3) # print(x) # im not sure wanted this print mylist.append(x) print(mylist) # A2 mysecondlist = mylist.copy() mysecondlist.sort() print(mysecondlist) #A3 İndexin ne alak anlamadım ben açıklarsanız ona göre değiştireyim MINIMUM_OF_COPIED_LIST = mysecondlist[0] MAXIMIM_OF_COPIED_LIST = mysecondlist[-1] print("Minimum: " + str(MINIMUM_OF_COPIED_LIST) + "\n" + "Maximum: " + str(MAXIMIM_OF_COPIED_LIST)) #B1 poz = [i for i in mylist if i > 0] print(poz) print("Pozitive elements count: " + str(len(poz))) #B2 MINIMUM_OF_SUBLIST = min(poz) MAXIMUM_OF_SUBLIST = max(poz) AVERAGE_OF_SUBLIST = round(sum(poz) / len(poz), 3) print("Minimum: " + str(MINIMUM_OF_SUBLIST) + "\n" + "Maximum: " + str(MAXIMUM_OF_SUBLIST) + "\n" + "Average: " + str(AVERAGE_OF_SUBLIST))