Answers for "python "?""

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
0

python

a = 2
print(a == a)
Posted by: Guest on April-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language