Python Question / Quiz; What is the output of the following Python code, and why? 🤔🚀 Comment your answers below! 👇 #python #programming #developer #programmer #coding #coder #softwaredeveloper #computerscience #webdev #webdeveloper #webdevelopment #pythonprogramming

Python_Dv's tweet image. Python Question / Quiz;

What is the output of the following Python code, and why? 🤔🚀 Comment your answers below! 👇

#python #programming #developer #programmer #coding #coder #softwaredeveloper #computerscience #webdev #webdeveloper #webdevelopment #pythonprogramming…

Answer: D Why: Treat the code in [] as a for loop and the range(1,6,1) can also be seen as for (i = 1; i < 6; i++) {} Because it starts at 1 we skipped 0 and started at 1 in the final output.



It’s very easy. DDDDDD


D is right answer


D) [1,2,3,4,5]


United States Trends
Loading...

Something went wrong.


Something went wrong.