News

This Python program calculates the factorial of a given number using a function. It uses a loop to compute the factorial and handles invalid inputs gracefully. Takes user input from the console.