Questions LLC
Login
or
Sign Up
Ask a New Question
Python Programming
Page 3
Questions (153)
Which line of code would print the first item in a list named pens?
(1 point) Responses print[pens(1)] print[pens(1)]
1 answer
asked anonymously
45 views
Which of the following lines of code would correctly add an item to a list called classes?
(1 point) Responses
1 answer
asked anonymously
40 views
n a Python list, what is the index of the first item?
(1 point) Responses 0 0 1 1 10 10 A
0 answers
asked anonymously
22 views
12 of 1512 of 15 Items
Question Which of these is a correct example of the creation of a list in Python? (1 point) Responses
1 answer
asked anonymously
44 views
# Student Name
# Start the Conversation name = input("What is your name? ") print("Hi " + name + ", nice to meet you. I am
9 answers
asked anonymously
42 views
Consider this program:
class Students: def __init__(self, name, grade): self.name = name self.grade = grade student34 =
1 answer
asked anonymously
27 views
What does this line of code do?
firstPlayer = Player('Omar') (1 point) Responses It creates a class called Player. It creates a
1 answer
asked anonymously
17 views
The program below asks the user to enter a phrase as a string. It should then print out that same string, replacing any
1 answer
asked anonymously
39 views
The program below should give the user four chances to guess a secret number from 1 to 10. If the guess is too high or too low,
1 answer
asked anonymously
31 views
In this chapter, you learned how to create for() and while() loops. You also learned how to use break and continue to halt a
1 answer
asked anonymously
38 views
how do i fix this code print("Welcome to the Text-based Adventure Game!")
print("You wake up in a dark room with no memory of how
1 answer
asked by
mznxbvcxvzbn
26 views
Which of the following would print out the length of a list called swim_times? (1 point) Responses print(swim_times)
1 answer
asked anonymously
26 views
How would you create a shopping list in Python? apples, juice, milk, water, soda, oranges
1 answer
asked anonymously
44 views
The numeric, string, and other variables that you have used so far can only hold a single data value. However, your Python
3 answers
asked anonymously
32 views
What will the following code output?
student_name = "Matthew" print(student_name[4]) Group of answer choices h w a t
1 answer
asked anonymously
50 views
If you want to print "Password verified" when the user guesses the matching password, what is wrong with the following code?
pass
1 answer
asked anonymously
32 views
Helena is creating a Python program to teach a younger sibling how to tell time. Helena begins by writing a very general
1 answer
asked anonymously
71 views
Which of the following would print the final item in a list called soccer_players?
(1 point) Responses print(soccer_players[+1])
1 answer
asked anonymously
75 views
UNIT 1
Activity 2 Complete all components in the activity below according to the given instructions. Refer to the provided rubric
1 answer
asked by
100%
55 views
The following code is incorrect. Which line of code fixes the errors?
print("Hello" + \n + "World!")
1 answer
asked anonymously
23 views
You need to develop a list of five random integers between 1 and 100. Which of the following examples will achieve this result?
G
1 answer
asked anonymously
43 views
#Adyant
validOrders = ("burger", "fries", "salad", "soda", "milkshake") itemDescriptions = ("Half-pound burger", "Large fries",
1 answer
asked anonymously
30 views
Multiple Choice Questions
What is the output of this program? print(10 != 10) an error message 10 != 10 false true
1 answer
asked by
Denim
23 views
If the user enters “four,” what is the output of this program?
x = input("What's the number? ") print(x + 4) - an error
1 answer
asked by
Denim
16 views
Which of the following answers best describes the output when you run the following code?
food = ["pizza", "hamburger", "salad",
1 answer
asked anonymously
35 views
Which of the following statements will produce a random floating point value between -10.0 and +15.0?
Select one: a. rand =
1 answer
asked anonymously
29 views
Which term best describes these lines?
count = 0 loop through list if “basketball” is found add one to count output count (1
1 answer
asked anonymously
87 views
Which term best describes these lines?
count = 0 loop through list if “basketball” is found add one to count output count (1
1 answer
asked by
100%
36 views
Complete the program below so it will generate three random numbers in the ranges indicated. Use the random.randrange() function
1 answer
asked anonymously
25 views
Complete the program below so it will generate three random numbers in the ranges indicated. Use the random.randrange() function
1 answer
asked anonymously
24 views
Complete the program below so it will generate three random numbers in the ranges indicated. Use the random.randrange() function
9 answers
asked anonymously
27 views
Complete the program below so it will generate three random numbers in the ranges indicated. Use the random.randrange() function
5 answers
asked anonymously
24 views
Which of the following lines of code would cause the program to wait one minute before executing the next line?(1
1 answer
asked by
HELLOOOOOOOOOOOONURSE
30 views
What would be the result of a typo in a Python program? (1 point) Responses a computer crash a computer crash a Python shutdown
1 answer
asked by
Johovah_Witness
26 views
What will we see on the Micro:bit display when the following code is run?
from microbit import * def heart_wait():
13 answers
asked anonymously
27 views
The program below will ask the user for a name, then print the "Happy Birthday" song for that person. There are only two print()
1 answer
asked anonymously
12 views
Consider the code below. When it runs, if the user enters a valid integer at the first input() prompt, but an invalid floating
1 answer
asked anonymously
21 views
The program below asks the user for an input word. It should then scan the word to count the number of "A" characters and also
1 answer
asked anonymously
11 views
why would you choose to use the sys module?
to generate random numbers to access the deeper levels of python such as the log to
3 answers
asked anonymously
18 views
What will be the output of these lines of code?
for i in range (1, 5): print (i) A. IndentationError B. PrintError C. 1234 D.
1 answer
asked anonymously
19 views
what error will occur if this is the first line of a profgram
num = 100/0 A. name error b. zerodivisionerror c. type error d.
1 answer
asked anonymously
25 views
what is the purpose of a try block in python
to handle an error withour the program crashing to try a math operation to see if
11 answers
asked anonymously
46 views
Why would you choose to use the sys module?
(1 point) Responses to generate random numbers to generate random numbers to access
1 answer
asked anonymously
40 views
The program below asks the user to enter a number of apples, oranges, and limes to purchase. Each apple costs 2.00, each orange
1 answer
asked anonymously
9 views
The program below starts with 100 cookies. It then asks the user to enter a number of cookies to eat (1-100) and displays the
1 answer
asked anonymously
15 views
In this activity, you are going to begin working on the GOPS (Game of Pure Strategy) card game. This is Part 1 of the project,
5 answers
asked anonymously
7 views
In this activity, you are going to begin working on the GOPS (Game of Pure Strategy) card game. This is Part 1 of the project,
7 answers
asked anonymously
3 views
This activity begins with an empty GOPS.py source file. You must copy and paste your completed work from the Part 1 activity
7 answers
asked anonymously
11 views
You are writing a line of code that should ask the user to input the balance of their bank account in dollars and cents. The
1 answer
asked anonymously
3 views
Verify output mean in python
1 answer
asked anonymously
4 views
Pages
1
2
3
4
Parent Categories (17)
Code/Programming
Coding
Coding/Programming
Computer Programming
Computer Science
Computer Science/Programming
Programming
Programming and Software Development
Programming Concepts
Programming Language
Programming Languages
Programming Languages and Tools
Programming or Computer Science
Programming Syntax
Programming/Code Syntax
Random Number Generation
Web Development