Question: Problem 3: 7_related Write a function that takes two integers as the parameters. The function should return a list including all the numbers which are

 Problem 3: 7_related Write a function that takes two integers as

Problem 3: 7_related Write a function that takes two integers as the parameters. The function should return a list including all the numbers which are multiples of 7 and the numbers which have at least one 7' as their digits between those two integers (both integers are included in the range) For example, the 7_related numbers between 10 and 50 should be [14, 17, 21, 27, 28, 35, 37, 42, 47, 49] def seven_related (lower, upper): print (seven_related(10, 50)) #114, 17, 21, 27, 28, 35, 37, 42, 47, 49] print (seven_related (77, 127)) #[77, 78, 79, 84, 87, 91, 97, 98, 105, 107, 112, 117, 119, 126, 127]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!