0
How may I find the missing and double number
7 Answers
+ 4
Get min and max value then using for loop with range method you can check and print if number is missing
for i in range(min, max + 1):
if i not in list:
print(i)
For duplicate number in dictionary with count and print those values whose count is 2
+ 2
Thile Dorje Lama I coded it but I really doubt it would save your life as it is your exercise to do..
It would be better if you coded it and we helped you
A͢J gave you the steps to fish over and over not just for a day.
+ 2
You completed the python core course a year ago Thile Dorje Lama do you not recall
your_dictionary = [1,2,4,5,6,7,7]
start_num = min(your_dictionary)
end_num =
max(your_dictionary)
for i in range(start_num, end_num):
???
if i not in your_dictionary:
print("missing", i)
+ 1
Thile Dorje Lama then I would suggest trying out and refreshing your memory with the introduction to python course
https://www.sololearn.com/learn/courses/python-introduction
0
Can you code me please, will save my life
0
I need a function to find out the missing and double number.
0
I was absent for a long time