diff --git a/dictionary max and min values.py b/dictionary max and min values.py new file mode 100644 index 00000000..8af0119d --- /dev/null +++ b/dictionary max and min values.py @@ -0,0 +1,19 @@ +my={ + 3:1, + 1:3, + 2:4 +} +for s in my.values(): + s1=s + break +print("The minimum number is:",end="") +for d in my.values(): + if(d<=s1): + s1=d +print(s1) +print("The maximum number is:",end="") +for d in my.values(): + if(d>s1): + s1=d +print(s1) +