Question: can you code this in python using if statmens and explain with docstrings thanks Your script should behave as follows: 1. If is divisible (leaves

can you code this in python using if statmens and explain with docstrings thanks

can you code this in python using if statmens and explain with

Your script should behave as follows: 1. If is divisible (leaves remainder ) by only , print 'a'. 2. If is divisible by only , print 'b'. 3. If is divisible by both and , print 'ab'. 4. If neither of the above statements hold true, print 'none'. Preconditions (something you can assume is true): a, b, and num are all positive integers greater than or equal to one. the given values are a = 5, b = 5, num = 5

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!