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

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
Get step-by-step solutions from verified subject matter experts
