Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Python Program to Find Numbers Divisible by Another Number

# Take a list of numbers
my_list = [12, 65, 54, 39, 102, 339, 221,]

# use anonymous function to filter
result = list(filter(lambda x: (x % 13 == 0), my_list))

# display the result
print("Numbers divisible by 13 are",result)
Comment

PREVIOUS NEXT
Code Example
Python :: upload to test pypi 
Python :: python list pop vs remove 
Python :: count elements in columns pandas 
Python :: get names of all file in a folder using python 
Python :: django datepicker 
Python :: fibonacci 
Python :: python code for string title 
Python :: Sum items in a list with ints and strings in python 
Python :: start a django project 
Python :: import all csv as append dataframes python 
Python :: creating new column with dictionary 
Python :: python check samplerate of mp3 
Python :: python dictionary to list 
Python :: python if and 
Python :: tkinter button relief options 
Python :: Python check if all elements exist in another list 
Python :: bringing last column to first: Pandas 
Python :: remove leading and lagging spaces dataframe python 
Python :: how to merge between two columns and make a new one in pandas dataframe 
Python :: python hash() seed 
Python :: how to install docx in python 
Python :: depth first search python recursive 
Python :: python print error output 
Python :: remove white border matplotlib 
Python :: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead 
Python :: how to reset username and password in django admin 
Python :: python thread stop 
Python :: python text reverse 
Python :: python selenium send keys enter send 
Python :: code to printing a binary search tree in python 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =