def pyq(x): x[2]=20 y=[10,20,30] x=[0,5,10,15] pyq(y) print (y) ———————— A- [0,5,20,15] B- [0,20,10,15] C- [10,20,30] D- [10,20,20] #Python_quiz
6
3
5
2
0
D, the input to the function is y, the function takes the 3rd element of a list (starting with one like regular ppl) and equates it to 20, hence the answer is D.
0
0
1
0
0
United States Tendances
- 1. #UFC321 112K posts
- 2. Gane 126K posts
- 3. Aspinall 113K posts
- 4. Jon Jones 10.4K posts
- 5. Ryan Williams N/A
- 6. Liverpool 169K posts
- 7. Mizzou 4,913 posts
- 8. South Carolina 11.3K posts
- 9. Ty Simpson 1,513 posts
- 10. Mateer 5,917 posts
- 11. Matt Zollers N/A
- 12. Aaron Henry N/A
- 13. Iowa State 4,547 posts
- 14. Kirby Moore N/A
- 15. June Lockhart 4,783 posts
- 16. Pribula 1,183 posts
- 17. Arch 18.2K posts
- 18. Slot 111K posts
- 19. Sark 4,360 posts
- 20. Brentford 71.6K posts
Loading...
Something went wrong.
Something went wrong.