Question: slove using python 3 please Write a function safe(n) that takes a non-negative integer n as input where n has at most 2 digits. The

 slove using python 3 please Write a function safe(n) that takes

slove using python 3 please

Write a function safe(n) that takes a non-negative integer n as input where n has at most 2 digits. The function determines if n is a safe number. A number is not safe if it contains a 9 as a digit, or if it can be divided by 9. The function should test if n is safe and return True if n is safe and False otherwise.see

>>> # testing Question safe(93) safe(82) safe(29) safe(36) safe(9) safe(7) False True False False False True

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!