Python Question / Quiz; What is the output of the following Python code, and why? 🤔🚀 Comment your answers below! 👇 #python #programming #developer #programmer #coding #coder #softwaredeveloper #computerscience #webdev #webdeveloper #webdevelopment #pythonprogramming #pythonquiz #ai #ml #machinelearning #datascience
@Python_Dv 5 * factorail(5 -1 ) 5 * 4! 5 * (4*3*2*1) 5 * 24 = 120
Capybara Experiences! Largest Experience in the USA.
@Python_Dv AI said correct answer is C Here is why:
@Python_Dv C)declare function factorial and assing parameter n since n is not equal to zero move to second loop. Compute factorial which computes to 120
Navigate perimenopause stages with confidence. Get guidance for every phase of journey. 💗
@Python_Dv Yep, it's c) 120. Recursive magic at work! 🧙♂️