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
World Languages,
1 month ago
Math,
1 month ago
Social Sciences,
2 months ago
Math,
9 months ago
Biology,
9 months ago