python: when count passed to funtion no didnt updata the count value to 10

enter image description here when i called yes() function

I expected output value 10 but 0 was the output As I passed count =0 and in no function it updated count but count in yes didn't update as both count were same variable.



Read more here: https://stackoverflow.com/questions/67396394/python-when-count-passed-to-funtion-no-didnt-updata-the-count-value-to-10

Content Attribution

This content was originally published by Bayare Deepak Singh at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: