Комментарии:
Can also possible using dict
ОтветитьBhai logic Building par ek video banao please that how to built a logic please please please bohot zarourat he mujhe please 😥😭🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
Ответитьbai bhot acha samjhate hooo
ОтветитьNhi aya smjh
ОтветитьWhat is “atoms”?
ОтветитьMy solution:
x=['hello',10,20,40,20,60,40,50,20]
y=[]
for i in x:
if x.count(i)>1:
y.append(i)
print(list(set(y)))
Sir aur questions ki video banao isi se related. Isme thoda confusion hai
ОтветитьExcellent bro 🙂
ОтветитьBhai aapne coding kaise sikhi
ОтветитьKeep making videos like these...I'm know c and python basics but don't know how to implement that ..I mean idk how to find out logics of any questions..😢..plz give me a suggestion sirr.
Ответитьexcuse me, sir, how about not duplicating? this video only shows if there are duplicates in the list, what if the list doesn't have duplicate elements?
ОтветитьOther possible solution :
Li = [33,44,33,66,77,88,99,33]
Du = {Li[i]:i for i in range(len(Li)) if Li[i] in (Li[0:i-1]+Li[i+1:-1])}
print(Du.keys())
Thanks for your explanation. Following one more possible solution.
l=["hello",10,20,10,"hello",10,20,30,40,10,20]
uniq_elements=[]
duplicate_elements=[]
for item in l:
if item not in uniq_elements:
uniq_elements.append(item)
else:
duplicate_elements.append(item)
print(duplicate_elements)
This code not working properly
ОтветитьLife me pehli bar esa kuch dekha mene
ОтветитьMujhe samjh nahi aya kis tarikese condition lagaya gaya he
Ответитьwe can make dict also
Ответитьlist(set([el for el in l if l.count(el)>1]))
ОтветитьCan be done using dictionary as well
ОтветитьSamjh me nhi aa rha h sir clear 😔
ОтветитьCan u explain anything bnkng projects or fraud detection or loan projects or retail projects kindly explain
Ответитьhow l[i] is hello?
Ответитьwhat is meaning -> in python like
L1 = [1,2,3,4, ["python","java","c++",(10,20,30)],5,6,7,["apple","banana","orange"]]
Print following
orange->e
what is solution
Thoda sa samjh aaya hai.. please dubara smjha do.
Ответитьpandas.DataFrame(l).drop_duplicates()... this method is acceptable?
Ответитьthanks bro instested of list d we set can also be used no repetation
ОтветитьThank u for sharing this
Ответитьlittle bit problem about second method i and j
Ответить