Contact
Privacy
Coding Development Art
  • Home
  • Latest
  • Oldest
  • Popular
  • Random
  • Home»
  • Categrories»
  • Programming Languages»
  • Python»

Write a program to filter the numbers in a list which are divisible by a given number - Python

Categories:
Python
Viewed: 4 - Published at: a few seconds ago

[ Write a program to filter the numbers in a list which are divisible by a given number ]

my_list = [11, 45, 74, 89, 132, 239, 721, 21]

num = 3
result = list(filter(lambda x: (x % num == 0), my_list))

print(f"Numbers divisible by {num} are {result}")

Related Posts:

6 Tips to Make Your Business Data Backups Secure
6 Tips to Make Your Business Data Backups Secure
Sponsored
JavaScript: Remove a Property From an Object
JavaScript: Remove a Property From an Object
JavaScript
JavaScript: How to Count the Number of Substring Occurrences in a String
JavaScript: How to Count the Number of Substring Occurrences in a String
JavaScript
BCA vs B.Tech – Which is Better?
BCA vs B.Tech – Which is Better?
Career
Difference between Von Neumann and Harvard Architecture
Difference between Von Neumann and Harvard Architecture
Computer
C program to produce the folowing design using *'s
C program to produce the folowing design using *'s
C Programs

You may also like:

PL/SQL Exception Handling
PL/SQL Exception Handling
PL/SQL
Matplotlib: Draw Vertical Lines on Plot
Matplotlib: Draw Vertical Lines on Plot
Python
Matplotlib: Change Scatter Plot Marker Size
Matplotlib: Change Scatter Plot Marker Size
Python
C++ program to swap two numbers without using temp variable
C++ program to swap two numbers without using temp variable
C++ Programs
Factors to Consider Before Developing An On-demand Streaming Platform
Factors to Consider Before Developing An On-demand Streaming Platform
Development
Variables, Constants and Keywords in C
Variables, Constants and Keywords in C
C Programs
Categories
  • Blog
    • Career
    • Computer
    • Downloads
    • Internet
    • Linux
    • News
    • Review
    • Security
    • Technology
  • Database
    • MySql
    • Oracle Database
    • SQL Server
    • SQLite
    • mongodb
  • Dev
    • Algorithm
    • Android
    • Batch File Programming
    • Books
    • Competitive Programming
    • Computer Networks
    • Data Structure
    • Design
    • Development
    • Flutter
    • Game
    • Git
    • Interview Questions
    • JDBC
    • Machine Learning
    • Mobile
    • Operating System
    • Programming
    • Projects
    • Sponsored
    • Webservice
    • iOS
  • Framework
    • .NET
    • Angular
    • Django
    • MVC
    • Nodejs
    • React
  • Programming Languages
    • ASP.NET
    • C Programs
    • C#
    • C++ Programs
    • CSS
    • HTML
    • JSP
    • Java
    • JavaScript
    • PHP
    • PL/SQL
    • Python
    • SQL
    • Swift
    • VB.NET
  • Tools
    • privacy-policy-generator
    • Mac Vendors
    • Ports Numbers
    • Wifi Routers Passwords

Site all the data, are collected from Internet, belongs to original author, please do not used for commercial purposes !

Coding Development Art
  https://www.codevelop.art
 
  contact@codevelop.art

Posts

  • Home
  • Latest
  • Oldest
  • Popular
  • Random

Follow Us

© 2018 codevelop.art - Coding Develop Art - programming and development tutorials blog - Learn all Program languages | codevelop.art.
All Rights Reserved.
  • Contact
  • Privacy
  • Terms of service
  • Copyright
  • Disclaimer