Question: yes stack trace aswell Part 1 - Write-up and Consider this code that determines whether a number is even or odd. EvenOdd Functions.py EvenOdd NoFunctions.py



Part 1 - Write-up and Consider this code that determines whether a number is even or odd. EvenOdd Functions.py EvenOdd NoFunctions.py . Please write a brief paragraph (4-6 sentences) about the following: The differences between the two codes The pros of the codes The cons of the codes Why functions are useful Part 2 - Stack Trace Create and submit a Stack Trace for this code: EvenOdd Functions.pyl EvenOdd_NoFunctions.py Download EvenOdd_NoFunctions.py (232 Bytes) num1 = 3 num2 = 10 num3 = 6 if (numi % 2) == 0: print("Even") else: print("odd") if (num2 % 2) == 0: print("Even") else: print("Odd") if (num3 % 2) 30: print("Even") else: print("odd") EvenOdd_Functions.py Download EvenOdd_Functions.py (200 Bytes) num1 = 3 num2 = 10 num3 = 6 def evenodd(num): if (num % 2) == 0: return "Even" else: return "Odd" print(evenodd(num1)) print(evenodd(num2)) print(evenodd(num3))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
