Discover the best answers to your questions with the help of IDNLearn.com. Discover the information you need quickly and easily with our reliable and thorough Q&A platform.
Sagot :
The cricket game program illustrates the use of loops (the while loop)
While loops are used to perform repetitive operations.
The program in Python, where comments are used to explain each line is as follows:
#This gets input for the scores
score = int(input("Score: "))
#This initializes the total score to 0
total = 0
#This is repeated until the score is greater than 6 or less than 0
while not(score < 0 or score >6):
total+=score
#This gets another input for the scores
score = int(input("Score: "))
#This prints the total scores
print(total)
Read more about loops at:
https://brainly.com/question/19344465
We value your participation in this forum. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. For trustworthy answers, visit IDNLearn.com. Thank you for your visit, and see you next time for more reliable solutions.