Python
xxxxxxxxxx
t = [1, 2, 3, 1, 2, 5, 6, 7, 8]
print(t)
[1, 2, 3, 1, 2, 5, 6, 7, 8]
Python
xxxxxxxxxx
print(list(set(t)))
[1, 2, 3, 5, 6, 7, 8]
Python
xxxxxxxxxx
s = [1, 2, 3]
print(list(set(t) - set(s)))
[8, 5, 6, 7]
Linux - How to Install anc-api-tools
Linux - How to Install curvedns
Python - Check if a Number is Positive, Negative or 0
Linux - How to Install zenmap
C - Count Number of Digits in an Integer
C++ - Check Whether a Number is Prime or Not
C++ - Check Leap Year
JavaScript - Check Whether a String Starts and Ends With Certain Characters
C - Find Largest Number Using Dynamic Memory Allocation
Linux - How to Install xbitmaps
Linux - How to Install zstd
Kotlin - Reverse a Number
Kotlin - Round a Number to n Decimal Places
Python - Writing Excel (XLSX) Files
Java - Reverse a Number
C++ - Find Quotient and Remainder
Kotlin - Find Factorial of a Number
Java - Create Pyramid and Pattern
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month