-
Notifications
You must be signed in to change notification settings - Fork 9
HimanshuGarg701/Python_Programming
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
# there is a predefined list and a tuple, return the common elements in form of list
x = ["1", "2", "abc", "def", "ghi", "4", "5"]
y = ("abc", "2", "5", "def", 3)
z = []
for i in y:
if i in x:
z.append(i)
print(z)
About
Practice Questions for Python.
Topics
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published