Content deleted Content added
m →Python programming examples: Changed the error raising method. |
→Python programming examples: raise ValueError will print "ValueError:" before the message |
||
Line 281:
n = int(input('Type a number, then its factorial will be printed: '))
if n < 0:
raise ValueError('
else:
fact = 1
|