logo

Crowdly

Browser

Add to Chrome

 The following recursive Python function is intended to accept a positive deci...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

 The following recursive Python function is intended to accept a positive decimal number as the input and return the number of digits in the input number.

 

def MyFun(num):    

    if num == 0:       

       .......(A).......    

    else:       

       .......(B).......

 

What will be the most suitable parts to fill the blanks A and B, respectively, so that the code will work correctly?

More questions like this

Want instant access to all verified answers on online.uom.lk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome