IDNLearn.com: Your one-stop platform for getting reliable answers to any question. Ask your questions and get detailed, reliable answers from our community of knowledgeable experts.

When would a flag variable be most useful?
1.when printing the number of items in a list

2.when checking the condition of a variable in a while loop

3.inside a function that prints the largest side of a triangle

4.when initializing a list