• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up

Python Program to Find Numbers Divisible by Another Number

python-dev (58)in #python-dev • 6 years ago
# 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)
6 years ago in #python-dev by python-dev (58)
$0.49
  • Past Payouts $0.49
  • - Author $0.24
  • - Curators $0.24
2 votes
  • crypto.income: $0.41
  • xiguang: $0.08
Reply 0
Sort:  
  • Trending
    • Trending
    • Votes
    • Age