0

How may I find the missing and double number

https://code.sololearn.com/cZLY68Km4uj2/?ref=app

19th Jun 2023, 3:01 AM
Thile Dorje Lama
Thile Dorje Lama - avatar
7 Réponses
+ 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
19th Jun 2023, 3:55 AM
A͢J
A͢J - avatar
+ 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.
19th Jun 2023, 4:40 AM
BroFar
BroFar - avatar
+ 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)
19th Jun 2023, 4:49 AM
BroFar
BroFar - avatar
+ 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
19th Jun 2023, 4:57 AM
BroFar
BroFar - avatar
0
Can you code me please, will save my life
19th Jun 2023, 4:01 AM
Thile Dorje Lama
Thile Dorje Lama - avatar
0
I need a function to find out the missing and double number.
19th Jun 2023, 4:42 AM
Thile Dorje Lama
Thile Dorje Lama - avatar
0
I was absent for a long time
19th Jun 2023, 4:54 AM
Thile Dorje Lama
Thile Dorje Lama - avatar