Загрузка...

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

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 Code ============================= length = int(input("Enter Size of List : ")) my_list = [] for _ in range(length): temp = int(input("Enter List Item : ")) my_list.append(temp) 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

Видео Write a Python Program to Count and Print the Number of odd Numbers in a List l автора Кодовый Космос
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки