Python Exercises, Practice Questions and Solutions





7. Write a program in Python to keep count of this given list starting from 100.

The list of items is -

["Suger", "Tea", "Rice", "Wheat", "Salt", "Pulse"]




10. Write a program in Python to filter the given list if the given expression evaluates to true.

Suppose the list and expression are -

list = [0, 3, 2, 30, 20, 34, 89, 35, 72, 64]
expr = (x % 4 == 0)












Related Articles

Convert Python list to numpy array
Convert string to list Python
Python program to list even and odd numbers of a list
Python loop through list
Sort list in descending order Python
Convert array to list Python
Python take screenshot of specific window
Web scraping Python BeautifulSoup
Check if two strings are anagrams Python
Python program to add two numbers
Print new line python
Python program for Prime Number
Odd Even Program in Python
Python program to convert Celsius to Fahrenheit
Python Convert XML to CSV
Python Text to Speech
Python send mail to multiple recipients using SMTP server
How to generate QR Code in Python using PyQRCode
Python programs to check Palindrome strings and numbers
CRUD operations in Python using MYSQL Connector
Fibonacci Series Program in Python
Python File Handler - Create, Read, Write, Access, Lock File
Python convert XML to JSON
Python convert xml to dict
Python convert dict to xml




Read more articles


General Knowledge



Learn Popular Language