Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7
мʀυηαlι ʀαנρυт I suppose you want to run a series of numbers in a function called testproc() and print out the numbers. Here is my code: n = [] # define n as a list def testProc(x): # define testProc() as a function n = x # set n as the series of the numbers that run in the function print(n) # print out the list testProc([1, 2, 3]) # run function The problem why your code can't run is because you don't define the function first before you run the function. And there's some syntax you need to take note in your code. I hope this helpful to you! Programming is fun! 😄😄 https://code.sololearn.com/cDHr2F2Lfyh9/?ref=app https://code.sololearn.com/cDHr2F2Lfyh9/?ref=app
11th Jul 2020, 8:41 AM
WenHao1223
WenHao1223 - avatar
+ 2
a bunch of syntax issue. what are you trying to do?
11th Jul 2020, 7:34 AM
Slick
Slick - avatar
+ 1
Do you want to access the list testproc
11th Jul 2020, 7:59 AM
Rajan Lamba
Rajan Lamba - avatar
0
https://code.sololearn.com/cLjHKnjQ5At4/?ref=app I hope that this code after a few changes in your code will do what you wanted to do. If not then let me know what you wanted to do.
11th Jul 2020, 9:10 AM
Akshay Panwar
Akshay Panwar - avatar