Write A Python Program To Find Common Items From Two Lists

preview_player
Показать описание
Hello Programmers, Welcome to my channel.

In this video you will learn about how to Write A Python Program To Find Common Items From Two Lists

Python Scripts
======================

Python Functions Solved
==========================

Python Programs Solved
============================

Code
=============================
length = int(input("Enter List1 Length : "))
list1 = []
for _ in range(length):
temp = int(input("Enter List1 Item : "))

length = int(input("Enter List2 Length "))
list2 = []
for _ in range(length):
temp = int(input("Enter List2 Item : "))

common_items = [item for item in list1 if item in list2]

print("Common Items present in two lists are ...")
for item in common_items:
print(item)

Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
Рекомендации по теме