Last post was sort of a test to see if i can comunicate properly on this forum. Which i guess i can not edit now.
dic={"123/2018":8,"124/2017":6,"125/2018":7,"126/2017":9} del dic["124/2017"] #ili dic.pop("124/2017") dic["435/2018"]=6 print(dic) med=0 for i in dic.values(): med+=i med=med/len(dic) #med=sum(dic.values())/len(dic) print(med)Solved by a friend