DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
print type error python
try
:
#Code to execute
except
Exception
as
err
:
print
(
f"
{
type
(
err
)
.
__name__
}
was raised:
{
err
}
"
)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#print
#type
#error
#python
ADD COMMENT
Topic
COMMENT
Name
6+4 =
Submit