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
920
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
71
United States الاتجاهات
- 1. Chauncey Billups 82.5K posts
- 2. Terry Rozier 77.8K posts
- 3. #FalloutDay 4,712 posts
- 4. Mafia 116K posts
- 5. Damon Jones 23.5K posts
- 6. Binance 188K posts
- 7. Ti West 2,413 posts
- 8. #7_years_with_ATEEZ 68.3K posts
- 9. Tiago Splitter 3,015 posts
- 10. #에이티즈_7주년_항해는_계속된다 53.7K posts
- 11. #A_TO_Z 52.9K posts
- 12. The FBI 172K posts
- 13. Changpeng Zhao 18.6K posts
- 14. Gambling 165K posts
- 15. The NBA 219K posts
- 16. Kash Patel 47.5K posts
- 17. Kirby Air Riders 11K posts
- 18. Gilbert Arenas 8,882 posts
- 19. New Vegas 6,070 posts
- 20. La Cosa Nostra 9,376 posts
Loading...
Something went wrong.
Something went wrong.