Which error occurs in this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Which error occurs in this code?

try: print(1/0) except ZeroDivisionError: raise ValueError Pls tell d answer

20th Nov 2015, 4:04 AM
Sanjana Pinky
3 Answers
0
both error
18th Dec 2015, 12:31 AM
Yusuf Ulutaş
Yusuf Ulutaş - avatar
0
Ultimately, ValueError, but both exceptions are raised.
29th Jun 2016, 9:40 PM
Edgar Garrido
Edgar Garrido - avatar
- 1
sanjay . . both exceptions are raised. .First ZeroDivisionError and Then ValueError
10th Dec 2015, 12:18 PM
Santhosh Jain
Santhosh Jain - avatar