Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Newbie Question re "TypeError: '<' not supported between instances of 'list' and 'int
Post: RE: Newbie Question re "TypeError: '<' not support...

Thank you!
sr12 General Coding Help 8 13,234 Apr-11-2019, 08:19 PM
    Thread: Newbie Question re "TypeError: '<' not supported between instances of 'list' and 'int
Post: RE: Newbie Question re "TypeError: '<' not support...

OK yes, agree there. So how can I apply function_1 to each item in the list of lists? (keeping it in list of lists format)
sr12 General Coding Help 8 13,234 Apr-11-2019, 07:44 PM
    Thread: Newbie Question re "TypeError: '<' not supported between instances of 'list' and 'int
Post: RE: Newbie Question re "TypeError: '<' not support...

sorry was trying to recreate in a generic way when I'm getting error in a larger file. added a few steps and am now getting error again: def function_1(x): if x < 0: return -100000000...
sr12 General Coding Help 8 13,234 Apr-11-2019, 07:33 PM
    Thread: Newbie Question re "TypeError: '<' not supported between instances of 'list' and 'int
Post: Newbie Question re "TypeError: '<' not supported b...

def function_1(x): if x < 0: return -1000000000 else: return (x ** (1-2)-1)/(1-2) list = [1, 2, 3, 4,] [function_1(i) for i in list] so I have a function (with a condition...
sr12 General Coding Help 8 13,234 Apr-11-2019, 07:02 PM

User Panel Messages

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