Question
1.Adam is writing a program that: 1) has the user guess a number and 2) tells the user how many guesses it took to get the correct answer. But when Adam tests the program, it always outputs that it took the user one guess, even when it takes many guesses. What error did Adam most likely make, and how should it be fixed?
2.The difference between a for loop and a while loop is that a for loop is a loop that happens for a certain number of times. A while loop happens until a certain condition is met. How do you know when to use each one? Give specific examples in your answer.
3.What are some real-life programs or websites you’ve used that have condition-controlled loops and count-controlled loops?
4.Your friend is trying out your new password generator program. She wants to know how it works. How would you explain it to her? Keep in mind that she does not know Python code. Make sure to use good communication techniques.
5.What are some situations where you might find it useful to use the ! symbol in a program?
2.The difference between a for loop and a while loop is that a for loop is a loop that happens for a certain number of times. A while loop happens until a certain condition is met. How do you know when to use each one? Give specific examples in your answer.
3.What are some real-life programs or websites you’ve used that have condition-controlled loops and count-controlled loops?
4.Your friend is trying out your new password generator program. She wants to know how it works. How would you explain it to her? Keep in mind that she does not know Python code. Make sure to use good communication techniques.
5.What are some situations where you might find it useful to use the ! symbol in a program?
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.