Python (programming language): Difference between revisions

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('Error: ItYou must beenter a positive number.')
else:
fact = 1