rs200415@rguktsklm.ac.in
CODERZONE
Home
Newsbuzz
PUC Material
Courses
Python Tutorial
C Tutorial
C++ Tutorial
java Tutorial
login
Run
Back
#try to avoid input function a = [1,2,[11,22,33],45,[1,2,3,4],-765,"python",[98,4,21],[4,5,-4]] for i in a: if type(i) == type([]): print("sum of the sub list is :"+str(sum(i)))
#try to avoid input function a = [1,2,[11,22,33],45,[1,2,3,4],-765,"python",[98,4,21],[4,5,-4]] for i in a: if type(i) == type([]): print("sum of the sub list is :"+str(sum(i)))
Click the run button. Try to avoid input() function.