def fat(n): res = 1 for i in range(2, n + 1): res *= i return res fat(1000)
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!