def add(x, y): x += y return x a = 5 b = 3 c = add(a, b) print(a) ————————————— A- 8 B- 5 C- 3 D- Error #Python #برمجة
                                            2
            0
            1
            2
            923
        Hi .. py beginner. Pydroid3 gives answer 5. Is that correct, pls advise or reference. I thought it wld add x(5) to y(3) giving 8 and put 8 back in x returning 8 as answer. Wheres the flaw in my thinking please. If answer is 5 then why hasn't x been incremented. thanks. G
0
                0
                0
                0
                72
                United States Tendances
- 1. Cowboys 67.4K posts
 - 2. Nick Smith Jr 6,959 posts
 - 3. Cardinals 29.8K posts
 - 4. #WWERaw 59.5K posts
 - 5. Kawhi 3,588 posts
 - 6. #LakeShow 3,336 posts
 - 7. Jerry 45.1K posts
 - 8. Kyler 8,120 posts
 - 9. Logan Paul 9,735 posts
 - 10. Blazers 7,157 posts
 - 11. No Luka 3,169 posts
 - 12. Jacoby Brissett 5,268 posts
 - 13. Pickens 6,587 posts
 - 14. Jonathan Bailey 14.8K posts
 - 15. Koa Peat 6,083 posts
 - 16. Cuomo 167K posts
 - 17. Javonte 4,178 posts
 - 18. AJ Dybantsa 1,526 posts
 - 19. Pacers 11.8K posts
 - 20. Bronny 14.9K posts
 
                            Loading...
                        
                    Something went wrong.
Something went wrong.