Menu
Coddy logo textTech

Practice #4

Lesson 8 of 9 in Coddy's Python List Comprehension course.

challenge icon

Challenge

Easy

Given a list of numbers nums.

Create a list comprehension that takes in a list of integers, nums, and returns a new list named divisible containing only the integers that are divisible by the sum of their digits.

Try it yourself

nums = eval(input())  # Don't change this line

All lessons in Python List Comprehension