Question: python 2. We want to write a function to print some interesting facts about numbers. However, we're still learning about if statements and elifs. Which

python

python 2. We want to write a function to print some interesting

2. We want to write a function to print some interesting facts about numbers. However, we're still learning about if statements and elifs. Which version of the function will tell us the most facts and why? 0 : def facts1(n): if(n % 2 print("The number is even!") elif(n % 3 == 0: print("The number is divisible by 3!") elif(n > 100): print("The number is big!") elif(n > 1000): print("The number is super big!") def facts2(n): if(n % 2 == 0: print("The number is even!") if(n % 3 0: print("The number is divisible by 3!") if(n > 100): print("The number is big!") if(n > 1000): print("The number is super big!")

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!