round results
This commit is contained in:
parent
3334aa662f
commit
d0771ad490
|
|
@ -297,7 +297,7 @@ if __name__=="__main__":
|
|||
# print(item, round(result[item],2))
|
||||
sorted_result = {key: value for key, value in sorted(result.items(),key=lambda item: item[1])}
|
||||
for item in sorted_result:
|
||||
print(item, sorted_result[item])
|
||||
print(item, round(sorted_result[item],2))
|
||||
input("Press ENTER to continue ")
|
||||
|
||||
elif command==17:
|
||||
|
|
|
|||
Loading…
Reference in New Issue