Write a Python Program to Count and Print the Number of odd Numbers in a List l

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

In this video you will learn about how to Write a Python Program to Count and Print the Number of odd Numbers in a List l

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

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

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

Code
=============================
length = int(input("Enter Size of List : "))
my_list = []
for _ in range(length):
temp = int(input("Enter List Item : "))

odd_list = [item for item in my_list if item % 2 != 0]

print("Count of Odd Numbers in List is : ", len(odd_list))
print("Odd Numbers in a List is : ", odd_list)

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

Thank you very helpful and understandable!!

Yan-vlig