How to do multiple works with list,in situation only can use local variables.. (Add,show,find from different buttons) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to do multiple works with list,in situation only can use local variables.. (Add,show,find from different buttons)

All inside Def & list is inside "def add" There are def find, def display How to link all together without global variable?

10th Apr 2018, 2:46 PM
Ravindu Chamikara
Ravindu Chamikara - avatar
1 Answer
0
Try using a class and change your functions into methods of it. You can store all your variables you need inside.
11th Apr 2018, 9:50 PM
Tolo
Tolo - avatar