Manually in a page 10 check boxes is there.so 5 check box
"on" and 5 check box "off" so using descriptive program how
to know how many "on" and how many "off" plz help me this
question answer?



Manually in a page 10 check boxes is there.so 5 check box "on" and 5 check box "off&..

Answer / Shweta Kureel

In Python, you can count the number of 'on' and 'off' checkboxes by iterating through the list of checkboxes and using a counter. Here is an example:n```ncheck_boxes = ['on', 'off', 'on', 'off', 'on', 'off', 'on', 'off', 'on', 'off']n on_count, off_count = 0, 0n for check in check_boxes:n if check == 'on':n on_count += 1n else:n off_count += 1n print('On count: ', on_count)n print('Off count: ', off_count)n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

What all things can you automate?

1 Answers  


What are the disadvantages of Hybrid framework

1 Answers  


What generally is the structure of a framework?

1 Answers  


Explain load testing on websites?

1 Answers  


What are the advantages of manual testing and automated testing?

1 Answers  


Hi everyone, Are you looking for "worksoft certify" automation tool training online? We have experienced corporate Worksoft certify trainers. We also provide support Worksoft certify automation issues. Please contact us Automationsolutions@yahoo.com

1 Answers  


Why we use Junit and Jmeter? Suggest some sites where we can get more information on these two Tools?

2 Answers  


Any one knows an Institute in Hyderabad where "Robot Test Automation Framework" is taught? Please email me: test.kvrm@gmail.com

0 Answers  


What is Test strategy documents.

2 Answers   Covansys,


In what condition we cannot use automation testing for the agile method?

1 Answers  


best institute for tesing tools in hyderabad?

8 Answers  


what is critical test case ? please give an example .

1 Answers  


Categories