Questions LLC
Login
or
Sign Up
Ask a New Question
Python
Page 5
Questions (402)
Which function generates a random number?
(1 point) Orandint Orandstring random.choice O guess
1 answer
asked anonymously
17 views
In Python, the symbol ! means not.
(1 point) O True False
1 answer
asked anonymously
16 views
In Python, the symbol! means not.
(1 point) A. True B. False
1 answer
asked anonymously
26 views
Which of these would you use to write Python code in a functional way? (1 point) Responses print() print() def printScore() def
1 answer
asked by
kojejcciewhoiel
27 views
class students : def_init_(self,name,grade): self.name =name
self . grade =grade student 34 =students ("maria", 10) student 35 =
1 answer
asked anonymously
42 views
class students : def_init_(self,name,grade): self.name =name
self . grade =grade student 34 =students ("maria", 10) student 35 =
1 answer
asked anonymously
35 views
Cumulative Project: How Can We Extend the Gameplay Experience?
Required Materials PythonAnywhere (requires login) Now that
1 answer
asked anonymously
14 views
When a program written in Python is running, the computer can understand:
the Python code, including comments. the Python code
1 answer
asked by
Blue
28 views
When a program written in Python is running, the computer can understand:
the Python code, including comments. the Python code
1 answer
asked by
Blue
27 views
When a program written in Python is running, the computer can understand:
the Python code, including comments.
1 answer
asked by
Blue
24 views
When a program written in Python is running, the computer can understand:
the Python code but not the comments.
1 answer
asked by
Blue
27 views
Given the code below, which expression placed in the ???? location will ensure a False result?
A = False B = True C = True if
1 answer
asked anonymously
17 views
When a program written in Python is running, the computer can understand:
(1 point) Responses the Python code, including
1 answer
asked anonymously
57 views
Which of these languages is interpreted?
(1 point) Responses Java Pascal Python C++
1 answer
asked anonymously
85 views
The line of code after a line beginning with the word else needs to begin with a(n):
A print statement b indentation C # D :
1 answer
asked anonymously
25 views
When a program written in Python is running, the computer can understand
(1 point) the Python code, including comments. the
1 answer
asked by
Blue
29 views
This line of code is an example of what?
choice = [item for item in clothes if item.startswith('g')] (1 point) object-oriented
1 answer
asked by
Blue
28 views
Which of these would you use to write Python code in a functional way?
(1 point) print() def printScore() class Score() map()
1 answer
asked by
Blue
22 views
Which of these would you use to write Python code in a functional way?
print() def printScore() class Score() map()
1 answer
asked by
Blue
18 views
When you use the print() statement to automatically concatenate multiple parameters together, which of the following statements
1 answer
asked anonymously
23 views
What type of data does the input() function return?
Select one: a. String b. It depends on what the user types in c. Integer d.
7 answers
asked anonymously
19 views
Which of the following two statements about the print() function are true?
Select one: a. print() with a single string parameter
1 answer
asked anonymously
24 views
How would you create a str.format() placeholder in the format string to ensure at least 20 characters minimum width for the
5 answers
asked anonymously
36 views
Articulate the code with respect to reusability.
def is_year(year): if year % 4 == 0: print(‘Year is divisible by 4’) else:
1 answer
asked anonymously
31 views
How Many Sevens?
Required Materials OnlineGDB (login required) Word processing software You’ve learned about lists and defining
1 answer
asked anonymously
42 views
Write a program in python whose inputs are three integers, and whose output is the smallest of the three values.
Ex: If the input
1 answer
asked anonymously
40 views
printf ("seven_checker")
my_list = [1, 2, 3, 4, 5,] for x in range(len(my_list)): print(my_list[x])printf ("seven_checker")
1 answer
asked by
num
44 views
what Python 3 code follows these rules?
Create a list with 10 numbers in it. Then call the function and pass your list to the
1 answer
asked anonymously
25 views
Consider a variable var with some value in it. How can we achieve an output of this format:
"This is the value of variable one:
1 answer
asked by
Hayden
59 views
Which one of these is the correct way to display the variable var, containing number 1 as value, to the console?(1 point)
Respons
1 answer
asked by
Hayden
48 views
Which function produces a text in Python language?(1 point)
Responses print print def def string string return
1 answer
asked by
Hayden
51 views
Which of these would you use to write Python code in a functional way?
(1 point) Responses print() def printScore() class Score()
3 answers
asked anonymously
47 views
This line of code is an example of what?
choice = [item for item in clothes if item.startswith('g')] (1 point) Responses
1 answer
asked anonymously
76 views
Which of the following Python debugger commands will show you the contents of the "mystery" variable?
Select one: a. p mystery b.
1 answer
asked anonymously
42 views
The program below is designed to help a user determine the tip they should pay on a bill. You should multiply the initial bill
1 answer
asked anonymously
25 views
Which of these is a correct example of the creation of a list in Python?
(1 point) Responses names = [“James”, “Omar”,
1 answer
asked anonymously
119 views
Sonia has a list called colleges with 10 entries and wants to print the final item on the list. Which code should be used?
(1
1 answer
asked anonymously
134 views
In a Python list, what is the index of the first item?
(1 point) Responses 0 0 1 1 10 10 A
2 answers
asked anonymously
77 views
Which of the following lines of code would remove the item “bagels” from a list called foods?
(1 point) Responses
1 answer
asked anonymously
99 views
in a python list, what is the index of the first item
1 answer
asked anonymously
23 views
In a Python list, what is the index of the first item?
A. 0 B. 1 C. 10 D. A
1 answer
asked by
Kee
38 views
which line of code would print the first item in a list named pens?
A. Print [pens(1)] B. Pens[print,0] C. Print (pens[0]) D.
1 answer
asked by
Kee
31 views
Which code example is an infinite loop?
Group of answer choices for loopNum in range(0,5): print(loopNum) loopNum = 1 while
1 answer
asked anonymously
25 views
How do you define a function in Python? How would you return a value from a function?
1 answer
asked anonymously
23 views
# Student Name
# Start the Conversation name = input("What is your name? ") print("Hi " + name + ", nice to meet you. I am
7 answers
asked anonymously
37 views
Consider this program:
class Students: def __init__(self, name, grade): self.name = name self.grade = grade student34 =
5 answers
asked anonymously
23 views
Consider this program:
class Toolkit(): def __init__(self, type): self.hasHammer = False; self.hasWrench = False; self.hasPliers
1 answer
asked anonymously
22 views
Consider this program:
class Toolkit(): def __init__(self, type): self.hasHammer = False; self.hasWrench = False; self.hasPliers
1 answer
asked anonymously
14 views
Consider this program:
class Students: def __init__(self, name, grade): self.name = name self.grade = grade student34 =
1 answer
asked anonymously
18 views
What will this line of code do?
numpy.average(theAverage) (1 point) Responses find the average of all of the values in the array
1 answer
asked anonymously
24 views
Pages
1
2
3
4
5
6
7
8
9
Parent Categories (17)
Application Development
Coding
Coding/Programming
Computer Programming
Computer Science/Programming
Interpreted Languages
Invasive Species
Libraries
Programming
Programming Language
Programming Languages
Programming or Computer Science
Programming/Code
Random Number Generation
Reptiles
Software or Programming
Web Development