Professional Documents
Culture Documents
फाइल
फाइल
txt", mode="a+")
lst = []
Listmul=1
Listavgi=0
count=0
for i in range(0,ListSize):
ele=int(input())
lst.append(ele)
for i in lst:
count+=1
Listmul*=i
Listavgi+=i
Listavg=Listavgi/count
min_position = max_position =0
smallest = lst[j]
min_position = j
largest = lst[j]
max_position = j
print("The Smallest Element in this List is : ", smallest, file=myFile)
print("The Index position of Smallest Element in this List is : ", min_position, file=myFile)
print("The Index position of Largest Element in this List is : ", max_position, file=myFile)
myFile.close()