You need to sign in to do that
Don't have an account?
Lalit kumar 26
hi, there is an integer list of (1,2,3,4,4). I want to copy this list in another list in such a way that list should not copy the number 4 twice. It should copy in a list not in set.
hi,
there is an integer list of (1,2,3,4,4). I want to copy this list in another list in such a way that list should not copy the number 4 twice. It should copy in a list not in set. What would be the code ?
thanks
lalit
there is an integer list of (1,2,3,4,4). I want to copy this list in another list in such a way that list should not copy the number 4 twice. It should copy in a list not in set. What would be the code ?
thanks
lalit
Set is required to remove duplicate .You can try like below which will help you to solve your problem .
Let me know if it helps !!
Thanks
Manoj
All Answers
Set is required to remove duplicate .You can try like below which will help you to solve your problem .
Let me know if it helps !!
Thanks
Manoj
I got the output. But can we do it using for loop ? This is the requirement.
thanks