How may I call this function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How may I call this function

How may I call this function ? Would you help me regarding the code ? https://code.sololearn.com/cPD2EdCuw5pa/?ref=app

5th Mar 2018, 7:28 PM
NIMA
NIMA - avatar
3 Answers
+ 1
_sum_of_a_2d_list_sample_(values)
5th Mar 2018, 7:34 PM
Obbu
Obbu - avatar
+ 1
A 2d list is a table, name your function sum_of_a_table(table). I prefer to make the names of things in my code short and simple, for example: tableSum or table_sum
5th Mar 2018, 7:50 PM
Ilai Segev
Ilai Segev - avatar
0
with calling in this way: sample_2d_list = [ ["david",18,19,20], ["hasan",12,8,18], ["parisa",12,14,15] ] print (_sum_of_a_2d_list_sample_(sample_2d_list)) I was received ERROR Just now I fpund solution, I removed strings and it was runned
5th Mar 2018, 7:42 PM
NIMA
NIMA - avatar