can anyone pls explain how? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

can anyone pls explain how?

what is the output of the code? try: print(0**0, end="") except e: print(0, end="") finally: print(2, end="") output: 12 this is one of the challenge question. pls help me understand https://code.sololearn.com/cAKttlV3ztCR/?ref=app

13th Sep 2020, 3:38 PM
Twilight🌅
Twilight🌅 - avatar
5 Answers
+ 4
0**0 is 1 Finally block prints 2 Something power 0 is 1 always... And you are displaying in same line by adding end=""
13th Sep 2020, 3:47 PM
Jayakrishna 🇮🇳
+ 5
Can you please provide it in a proper code format? I ran it in code playground but it's showing error
13th Sep 2020, 3:41 PM
OfcourseitsRohit
OfcourseitsRohit - avatar
+ 5
Recheque your question it's not complete question
13th Sep 2020, 3:46 PM
Ayush Kumar
Ayush Kumar - avatar
+ 4
Lucifer🗡️ i have done it now
13th Sep 2020, 3:47 PM
Twilight🌅
Twilight🌅 - avatar
+ 4
Jayakrishna🇮🇳 thank u :) i understood
13th Sep 2020, 3:50 PM
Twilight🌅
Twilight🌅 - avatar