
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Write a loop to populate the list user_guesses with a number of guesses. The variable num_guesses is the number of guesses the user will have, which is read first as an integer. Read each guess (an integer) one at a time using int(input()).
Sample output with input:
3 9 5 2
user_guesses: [9, 5, 2]
![< >
learn.zybooks.com
b Search results for 'Write a loop...
ży Section 6.3 - IT 140: Introducti...
B Grades - IT-140-J6169 Introdu...
* Search Results | Course Hero
Tinder | Dating, Make Friends &...
Snapchat - The fastest way to s...
= zyBookS My library > IT 140: Introduction to Scripting v3 home > 6.3: Iterating over a list
E zyBooks catalog
Help/FAQ
8 Victoria Thibodeaux
Feedback?
CHALLENGE
6.3.1: Get user guesses.
АCTIVITY
Write a loop to populate the list user_guesses with a number of guesses. The variable num_guesses is the number of guesses the
user will have, which is read first as an integer. Read each guess (an integer) one at a time using int(input().
Sample output with input:
3952
user_guesses: [9, 5,
2]
247772.1992070.qx3zqy7
1 num_guesses
2 user_guesses
int(input())
[]
1 test
passed
4 '' Your solution goes here '''
All tests
6 print('user_guesses:', user_guesses)
passed
Run
Feedback?](https://content.bartleby.com/qna-images/question/0fb6fbe8-c93b-4e2e-8100-eedf21471e21/ace91c48-4c7d-409c-aec6-5bd56fc0b270/jds64fb_thumbnail.png)
Transcribed Image Text:< >
learn.zybooks.com
b Search results for 'Write a loop...
ży Section 6.3 - IT 140: Introducti...
B Grades - IT-140-J6169 Introdu...
* Search Results | Course Hero
Tinder | Dating, Make Friends &...
Snapchat - The fastest way to s...
= zyBookS My library > IT 140: Introduction to Scripting v3 home > 6.3: Iterating over a list
E zyBooks catalog
Help/FAQ
8 Victoria Thibodeaux
Feedback?
CHALLENGE
6.3.1: Get user guesses.
АCTIVITY
Write a loop to populate the list user_guesses with a number of guesses. The variable num_guesses is the number of guesses the
user will have, which is read first as an integer. Read each guess (an integer) one at a time using int(input().
Sample output with input:
3952
user_guesses: [9, 5,
2]
247772.1992070.qx3zqy7
1 num_guesses
2 user_guesses
int(input())
[]
1 test
passed
4 '' Your solution goes here '''
All tests
6 print('user_guesses:', user_guesses)
passed
Run
Feedback?
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Q1: Secret Messages Implement a Caesar cipher to encrypt messages.arrow_forward"Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the user must repeat the sequence. Create a for loop that compares the two strings starting from index 0. For each match, add one point to userScore. Upon a mismatch, exit the loop using a break statement. Assume simonPattern and userPattern are always the same length. Ex: The following patterns yield a userScore of 4:simonPattern: RRGBRYYBGY userPattern: RRGBBRYBGY #include <iostream>#include <string>using namespace std; int main() { string simonPattern; string userPattern; int userScore; int i; userScore = 0; cin >> simonPattern; cin >> userPattern; /* Your solution goes here */ cout << "userScore: " << userScore << endl; return 0;arrow_forwardIn Java Write a program that prints the 128-character ASCII table. It should print the tablein eight tab-separated columns. The first column contains a "Dec" heading (fordecimal number) with the numbers 0 through 31 below it. The second columncontains the ASCII characters associated with the numbers 0 through 31. The nextcolumns contain the subsequent numbers and associated ASCII characters. See thebelow sample output for details. Be aware that that output was produced by aprogram running in a console window in a Windows environment. If you runyour program in a different environment, the first 32 characters and the lastcharacter will probably be different from what’s shown below.Note that some characters display in a non-standard manner. For example, thenumber 7 corresponds to a bell sound. You can’t see a sound, but you can see thevacant spot for 7’s character in the below table. The number 8 corresponds to thebackspace character. You can’t see a backspace, but you can see how the…arrow_forward
- This program asks the user to enter 4 names for a team, storing them in an array of Strings. Then the program asks for one of those names again, and a new name to substitute instead of that one. Finally, the program changes the array, making that substitution. This modified list of names is printed on the screen. You can see sample output at the end of this file.arrow_forwardCreate a while loop that finds a sum of all odd numbers from 1 to 21.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education