Oct-07-2023, 11:22 AM
hi
I saw the below code on the net:
please explain.
another question that is not related to the above.
usually, when I enter this forum to see replies to my threads I go to forum>>my discussions. but there is not (I did not have seen until now) any object for creating a new thread there, so I have to go to home>>generall coding help>>post thread for creating a new thread.
is there an object or method in my discussions to create a new thread?
thanks
I saw the below code on the net:
def foo(): try: return 1 finally: return 2 k=foo() print(k)the result of running this code is 2( return result from finally). why is it? if the return in the try section does not run?
please explain.
another question that is not related to the above.
usually, when I enter this forum to see replies to my threads I go to forum>>my discussions. but there is not (I did not have seen until now) any object for creating a new thread there, so I have to go to home>>generall coding help>>post thread for creating a new thread.
is there an object or method in my discussions to create a new thread?
thanks