Kurse
AnmeldenBeginne KI zu lernen
Kurse
AnmeldenBeginne KI zu lernen
+ 1

Code logic description

Why this code results 1 & 3 ? what is the logic ? https://code.sololearn.com/cme9QcRfeLBK/#py

pythonexceptionspython3tryfinally
26th Jan 2018, 11:29 PM
NIMA
NIMA - avatar
1 Antwort
+ 4
Since no exceptions were thrown, only the code in the try and finally blocks are executed. If an error did occur in the try block, the catch block would have executed immediately. The finally block is always executed last.
27th Jan 2018, 12:07 AM
David Carroll
David Carroll - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
What is slicing of data in lists ?
3 Votes
Using Def
0 Votes
I have been learning code for about 2 months and I am still not good
0 Votes
Is ethical hacking good? :)
0 Votes
please add rust? , I'm can create and write code in Rust , can you add rust in create section please?
3 Votes
How to make csharp program.cs, other Windows like the launch json and how to add other languages in the same code on ipad
0 Votes
Can someone tell me how good this coding language is? You can look through the code to find syntax in a comment
1 Votes
I am wondering if there is anything i need to know
1 Votes
“Algo salió mal” curso HTML text formating
0 Votes
C programing
0 Votes