Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Explanation of except ... as :
Post: Explanation of except ... as :

Hi, i trying to figure out how the except work is... in this python code try: raise Exception("a", "b") except Exception as e: print(e) print(e.__str__()) print(e.args)keyword as ein h...
Fernando_7obink General Coding Help 2 1,943 Feb-13-2021, 03:39 AM
    Thread: How to Sorted and display the Subclasses of BaseException
Post: RE: How to Sorted and display the Subclasses of Ba...

(Feb-09-2021, 08:52 AM)buran Wrote: No, not reverse, but key for subclass in sorted(thisclass.__subclasses__(), key=str): from the docs Quote:key specifies a function of one argument that is used to...
Fernando_7obink Homework 9 3,709 Feb-10-2021, 11:26 AM
    Thread: How to Sorted and display the Subclasses of BaseException
Post: RE: How to Sorted and display the Subclasses of Ba...

(Feb-09-2021, 07:57 AM)buran Wrote: (Feb-09-2021, 07:44 AM)Fernando_7obink Wrote: it cant work because the sorted() only work on string or number typedo you know that sorted() takes optional key a...
Fernando_7obink Homework 9 3,709 Feb-09-2021, 08:40 AM
    Thread: How to Sorted and display the Subclasses of BaseException
Post: RE: How to Sorted and display the Subclasses of Ba...

(Feb-09-2021, 06:42 AM)buran Wrote: So, what have you tried? Because, what's the point if you don't try for yourself.i have done few things e.g. try to sort the subclass first by sorting the for loo...
Fernando_7obink Homework 9 3,709 Feb-09-2021, 07:44 AM
    Thread: How to Sorted and display the Subclasses of BaseException
Post: How to Sorted and display the Subclasses of BaseEx...

I have a task from the online course that i enrolled free recently **smile** , can anyone help me for sorting the printout from the line code as follow : def printExcTree(thisclass, nest = 0): if...
Fernando_7obink Homework 9 3,709 Feb-09-2021, 05:11 AM
    Thread: About list and method ....
Post: RE: About list and method ....

(Dec-22-2020, 04:02 AM)bowlofred Wrote: When you repeatedly do level2.append(level1), you keep putting another copy of the same list into the outer list. Then when you modify level1, all the copi...
Fernando_7obink General Coding Help 3 2,312 Dec-22-2020, 09:15 AM
    Thread: About list and method ....
Post: About list and method ....

hello, is there someone have ever facing same situation like me ? lets say i have write a code as following : level_1 = [] level_2 = [] for t in range(2): for f in range(2): level_0 = [...
Fernando_7obink General Coding Help 3 2,312 Dec-22-2020, 03:46 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020