New course! Every coder should learn Generative AI!
Try a free lesson0
Printing value in updated list.
Can anyone explain me, why the new number that's added to list is printing "number not found" when we search in the list after updated.also. " I need, if I enter a number that's not in the list it'll definitely show "Number not found" after it'll be added to the list. Now, if I search the added number it should show "Number found" but it's not happening. Please explain me this https://code.sololearn.com/c77zyMVUmqly/?ref=app
4 Answers
+ 8
Because you just defined function
but, you didn't call the function!
https://code.sololearn.com/cIy1eh7P08Ff/?ref=app
edit**
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2285/?ref=app
go through this ,u will get how to call a function after defining it and I updated the code as u needed!!
+ 5
You didn't call the function
+ 1
Chaithra Gowda👑 How can I call it ?
Please help me to know about it. I didn't understood completely, if possible explain the concept with other example or the same one.
I need the result to be "Number found" after updating the list with new number
0
David Ashton Please help me with this.