Differentiate between for and while loops. in python please give answer
Answers
Answered by
1
Answer:
Just like while loop, "For Loop" is also used to repeat the program. But unlike while loop which depends on condition true or false. "For Loop" depends on the elements it has to iterate. For Loop iterates with number declared in the range
Answered by
1
Just like while loop, "For Loop" is also used to repeat the program. But unlike while loop which depends on condition true or false. "For Loop" depends on the elements it has to iterate. For Loop iterates with number declared in the range
Similar questions
Accountancy,
1 month ago
Social Sciences,
1 month ago
Social Sciences,
3 months ago
Math,
9 months ago
Biology,
9 months ago