0

Missing Numbers

Code coach problem solution n=int((input())) l=[] m=" " for i in range(n): g=int(input()) l.append(g) s=l[0] g=l[n-1] for i in range(s,g,1): if(i in l): continue else: m=m+str(i)+" " print(m)

29th May 2021, 7:55 PM
đ‘·đ’‚đ’“đ’…đ’‰đ’–_𝑹𝒍𝒂𝒑𝒂𝒕𝒊`
đ‘·đ’‚đ’“đ’…đ’‰đ’–_𝑹𝒍𝒂𝒑𝒂𝒕𝒊` - avatar
4 Respostas
+ 1
Post the question please
29th May 2021, 8:09 PM
Atul [Inactive]
+ 1
n = int(input()) q = [] for i in range(n): q.append(int(input())) print (" ".join([str(i) for i in range(min(q),max(q)) if i not in q ]))
21st Jul 2021, 1:14 PM
Almantas Seikis
Almantas Seikis - avatar
0
you've got one point because you shared your code attempt, but you must describe both the code coach requirement and the problem you're facing, as well as tagging the question with the language used, even it's obvious that's it's python ;P (you can edit your question: avoid posting a duplicated thread, but once the question was updated, post in the thread to make us aware of edition)
29th May 2021, 8:44 PM
visph
visph - avatar
0
Sure
30th May 2021, 2:30 AM
đ‘·đ’‚đ’“đ’…đ’‰đ’–_𝑹𝒍𝒂𝒑𝒂𝒕𝒊`
đ‘·đ’‚đ’“đ’…đ’‰đ’–_𝑹𝒍𝒂𝒑𝒂𝒕𝒊` - avatar