Select the Python code snippet that corresponds to the following Javascript snippet.
for (let i = 0; i < 10; i++) {
console.log(i);
}
This is the question
I’m giving answers below
for a in 1..5 do
puts i
end
This is the first answer
and the second answer
for (int i = 0; i < 10; i++)
{
print()
}
and the third answer
for (i in x)
{
print(i)
}
and the fourth answer
for (i in x)
{
print(i)
}
Please Pick one of those answers which one is correct.
Which one do you think might be correct?
I really don’t know. I am newbie to programming. If you know please tell me
We aren’t here to answer homework questions for you. We can help you refine your answer or clarify things, but you need to start with something.
What does Python for loop syntax look like? Do you have an example?
It’s not home work, it’s Quiz
Ok. We aren’t here to do your quizzes for you. But if you try to provide an answer and reasoning, we can give you feedback (unless this is some sort of graded assignment)
This subject they didn’t taught me.
That question thay asked me in quiz I will give you the link. This is the course link
This is the Quiz link
If you want to check the previous lesson other languages.
We still aren’t here to answer the question for you.
Have you tried Googling “for loop Python” for an example?
what is this code meaning? or where can I learn about this code?
for (let i = 0; i < 10; i++) {
console.log(i);
}
This is a Javascript For Loop.
Could you explain detaily about is loop according my top question
there is not matching to my question and your link.
The example you gave is an extremely simple for loop which does nothing but log the value of i to the console for each iteration of the loop. It essentially demonstrates how the loop works, without actually doing anything.
What is the matching python loop
Google offers many simple explanations.