Answers for "python sw"

3

Python

Python is an interpreted, high-level, general-purpose programming language.

Created by Guido van Rossum and first released in 1991, Python's design
philosophy emphasizes code readability with its notable use of significant
whitespace.
Posted by: Guest on June-19-2020
0

python

n = int(input('Type a number, and its factorial will be printed: '))

if n < 0:
    raise ValueError('You must enter a non negative integer')

fact = 1

for i in range(2, n + 1):
    fact *= i

print(fact)
Posted by: Guest on July-16-2020

Code answers related to "python sw"

Browse Popular Code Answers by Language