Please find the answers to the above questions:
Question 1:
Given Program
is:
s = [10,9,12]
for x in s:
print("Score: " + str(x))
print("Game Over")
We have to type the program above identical line per line into
the blanks which are given below along with these conditions:
1. For Indentation, Use 2 spaces per tab
2. In case of Empty blank below, we have to type the word EMPTY
Blank # 1 s=[10,9,12]
Blank # 2 for x in s:
Blank # 3 print("Score: " + str(x))
Blank # 4 print("Game Over")
Type exactly the same things without space, But for Blank #3, please provide 2 spaces in the beginning and then type out the 3rd line in the program in the blank.
Please look into the image for proper indentation(As this editor will neglect all the indentation ):
Question 2:
When we run the above program, we will get the output of:
Similar to the above, We have to type the output printed by the
program above as well as the input typed by the user into the
blanks which is given below along with these conditions:
1. In case of Empty blank below, we have to type the word
EMPTY
(There will be no Indentations since it is the output)
Blank # 1 Score: 10
Blank # 2 Score: 9
Blank # 3 Score: 12
Blank # 4 Game Over
Blank # 5 EMPTY
Hope this Helps!!!
Please do upvote as well, If you got the answer ?
If not please comment, I will Help you with that....
PythonTutor Question 1 (1 point) op p y nebol selected 1 $ = [10, 9, 12)...
C++ A Program for Examining String (1) Ask the customer to type any string they like and then print it to the console. Example: Type a sentence: The CIS161 Computer Science II course is so much fun! You typed: The CIS161 Computer Science II course is so much fun! (2) Write the remaining code for the CountOfLetters() function, which returns the number of characters in the string that was entered. To get full credit for this question, this should be...
C++ programming: Write a program to score a two player game of
scrabble. The program reads the player number, word played and the
squares on the board used for each word played then reports the
scores for each word and the total score for each player.
• All information is read from the file, moves.in.
• Each line of the file contains a player number (1 or 2), the
word and the board spaces
used.
• The words are entered...
Print numbers 0, 1, 2, ..., userNum as shown, with each number indented by that number of spaces. For each printed line, print the leading spaces, then the number, and then a newline. Hint: Use i and j as loop variables (initialize i and j explicitly). Note: Avoid any other spaces like spaces after the printed number. Ex: userNum = 3 prints: 0 1 2 3 Sample program: #include <stdio.h> int main(void) { int userNum = 0; int i =...
Problem 1 1 def modify(word.ch). word == word + ch return word print('new word is', word) To run the function modify() defined above, we make the following call: result = modify('course', 's') Find and fix the errors in the function definition, lines (1) to (4), such that after the call is executed: • Variable result has the value 'courses' • 'new word is courses' is printed out. For each error found and fixed, you must indicate the following: • line...
Section 1.2 Row Echelon Form: Problem 6 Previous Problem Problem ListNext Problem (1 point) Solve the system by finding the reduced row-echelon form of the augmented matrix. reduced row-echelon form How many solutions are there to this system? A. None B. Exactly C.Exactly 2 D. Exactly 3 E. Infinitely many F. None of the above If there is one solution, give its coordinates in the answer spaces below. If there are infinitely many solutions, enter in the answer blank for...
Question 6 (1 point) Fill in the blanks (in order!) to balance the reaction. Use a "1" if necessary - don't leave any boxes blank. Ag2S (s) + NaNO3 (aq) Na2S (aq) + AgNO3 (aq) -> Blank # 1 Blank # 2 N Blank # 3 N Blank # 4
Question 1 (1 point) Year Nominal GDP Deflator Real GDP 1980 $12 $24 1990 18 75 2000 80 22.5 base 2010 20 20 GDP in trillions of dollars. Fill in the blanks using only integers. Do not use any dollar signs, labels, units, decimals, or points. Blank 1: Blank 2: Blank 3: Blank 4: Question 2 (1 point) The overall trend of nominal GDP appears to be increasing. After converting to real GDP, to 2010 dollars,...
please answer all the questions: Question 11 Which of the following alignment options is true about right alignment? 1-text lines up only on right margin 2-text lines up only on the left margin 3-text lines up on both left and right margins 4-text is spaced out evenly between the margins Question 12 ________ mark specific locations on a line of text in a document. 1-Placeholders 2-Leader lines 3-Anchors 4-Tab stops Flag this Question Question 13 If the rulers do not...
There are subtle, but important, differences in the println()
and print() methods. For this assignment, you will explore these
differences by outputting variations of the phrase "Easy as pie."
The following procedures should be done in succession, thus
producing a single output for all print statements:
Introduction There are subtle, but important, differences in the println() and print methods. For this assignment, you will explore these differences by outputting variations of the phrase "Easy as pie. The following procedures should...
Read an arbitrary number of positive integer values from stdin. The values are separated by one or more spaces or newlines (only). The input is guaranteed to be well-formed. On standard output, render a simple graph representation of the input values, in order, using hash # characters as shown in the examples below. The number of hashes printed should be equal to the input value. Your program should output exactly one line per input value. The value zero should generate...