Menu
Coddy logo textTech

Practice #1

Lesson 5 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 nums and returns a new list named nums2 that stores integers after dividing them by 3 if they are multiples of 3.

Try it yourself

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

All lessons in Python List Comprehension