How to check how many functions returns None in a specific class ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to check how many functions returns None in a specific class ?

let's say I wanna check the functions which return None in class 'list' how to do that? here is my attempt but it's giving me OS error my attempt : https://code.sololearn.com/cRReLKs7Uu62/?ref=app

5th Jul 2021, 9:41 AM
Ratnapal Shende
Ratnapal Shende - avatar
3 Answers
5th Jul 2021, 10:17 AM
Abhay
Abhay - avatar
+ 2
Ratnapal Shende function itself , print out the func_list which consists of a tuple having function name and address of that function
5th Jul 2021, 2:31 PM
Abhay
Abhay - avatar
0
Abhay Thanks for the help! 🎊 please explain this bits from last line --> list(i[1]()==None.... # what is 1 here?
5th Jul 2021, 12:24 PM
Ratnapal Shende
Ratnapal Shende - avatar