0
what is the difference between raise and print?
2 odpowiedzi
+ 1
Raising an error halts the entire program at that point (unless the exception is caught), whereas printing the message just writes something to stdout -- the output might be piped to another tool, or someone might not be running your application from the command line, and the print output may never be seen.
+ 1
raise is used for raising exceptions. And print is used to for output