Question: python answer please Write a function, specialsum (a, b), which returns the sum of all the even numbers and numbers containing the digit 3 between
Write a function, specialsum (a, b), which returns the sum of all the even numbers and numbers containing the digit 3 between a and b (inclusive). For example, specialsum (13, 18) should return 61. The function should work regardless of which variable, a orb, is the largest. For example, specialsum (1, 5) and specialSum (5, 1) should return the same value, 9. If a and b are equal then the function should return a if it is even or contains the digit 3 otherwise return 0. For example, specialSum (3, 3) should return 3 while specialSum (5, 5) should return 0. Lastly, a and b are integer values greater than or equal to one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
