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
            924
        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 Tendências
- 1. Dick Cheney 17.2K posts
 - 2. Election Day 79.8K posts
 - 3. Good Tuesday 25K posts
 - 4. #tuesdayvibe 1,366 posts
 - 5. GO VOTE 68.5K posts
 - 6. Rolex 15.4K posts
 - 7. #Election2025 2,110 posts
 - 8. George W. Bush 7,430 posts
 - 9. #WeTVAlwaysMore2026 1.42M posts
 - 10. Halliburton 1,159 posts
 - 11. Jonathan Bailey 45K posts
 - 12. Hogg 6,975 posts
 - 13. iPads N/A
 - 14. Comey 93.9K posts
 - 15. Tommy Robinson 21.4K posts
 - 16. Logan Wilson 1,438 posts
 - 17. #AllsFair N/A
 - 18. Nino 49.2K posts
 - 19. Nick Smith 19.6K posts
 - 20. Jake Paul 5,779 posts
 
                            Loading...
                        
                    Something went wrong.
Something went wrong.