Questions LLC
Login
or
Sign Up
Ask a New Question
Python
Page 7
Questions (402)
Which line of code would force a Python program to end?
A. Over () B. Exit () C. End () D. Depart ()
1 answer
asked by
Kee
27 views
when using the time.sleep () method, what should go in the parentheses?
A. Nothing B. Length of pause in minutes C. Length of
1 answer
asked by
Kee
31 views
Given the code below, what are some limitations of the way traversal is being done?
marbles =
1 answer
asked anonymously
18 views
The program below creates a list of 5 pet names. Add print() statements as shown in the following steps to print parts of the
3 answers
asked anonymously
45 views
In a python list, what is the index of the first item?
1 answer
asked anonymously
25 views
The program below adds three user-entered numbers to the values list. Where shown by the comments, add code to process the list
1 answer
asked anonymously
35 views
The program below adds three user-entered numbers to the values list. Where shown by the comments, add code to process the list
3 answers
asked anonymously
33 views
The program below initializes a list with integers between two user-entered numbers. It should then traverse or iterate through
1 answer
asked anonymously
34 views
Unlike in Python, indentation does not matter in HTML.
(1 point) Responses True True False
1 answer
asked anonymously
73 views
What is the result of the following code?
x=7//2+10%2**4 print(x)
1 answer
asked anonymously
41 views
Given the following code:
name = input("Enter your name: ") value = float(input("Please enter the sale amount: ")) What code
1 answer
asked anonymously
28 views
Which of the following code examples assigns hi yeah to s3?
s1="Python is the best language ever!" s2="Python yeah!" Group of
1 answer
asked anonymously
32 views
To cast the variable num to an integer and store it in new_num, what code should be entered in the blank?
num= input("Please
1 answer
asked anonymously
67 views
Unlike in Python, indentation does not matter in HTML. (1 point) Responses True True False False
1 answer
asked anonymously
26 views
You need to find the highest and lowest sales values for your sales associates. The values are in a list. Fill in the missing
1 answer
asked anonymously
36 views
Which of the following code examples assigns hi yeah to s3?
s1="Python is the best language ever!" s2="Python yeah
1 answer
asked anonymously
33 views
What is the output of this program?
print(10 != 10) - an error message - 10 != 10 - false - true
1 answer
asked by
Denim
17 views
What is the purpose of the .lower() function?
- It finds the remainder. - It rounds down. - It decreases the font size. - It
1 answer
asked by
Denim
9 views
What is the output of this program?
score = 9 Score = 8 print(score) - 9 - 8 - 17 - an error message
1 answer
asked by
Denim
15 views
Why might you use the random.seed() function?
Select one: a. To enable the random library to provide any random numbers at all b.
1 answer
asked anonymously
30 views
Which of the following statements will generate a random integer from 1 up to (but not including) 100?
Select one: a. rand =
1 answer
asked anonymously
25 views
Normally, computers are very predictable. However, your program may occasionally need to do something unexpected or random.
3 answers
asked anonymously
19 views
When using the time.sleep() method, what should go in the parentheses?
(1 point) Responses nothing nothing length of pause in
1 answer
asked anonymously
37 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
7 answers
asked anonymously
26 views
import random
seedValue = int(input("Enter integer seed: ")) random.seed(seedValue) num1 = random.randrange(101) # Generates
1 answer
asked anonymously
21 views
The program below initializes a list of goblins. You must add code to print two random elements from the list using the
1 answer
asked anonymously
25 views
The program below asks the user to enter several integers, which are added to a list called values. Use the core math functions
3 answers
asked anonymously
27 views
The program below asks the user to enter several integers, which are added to a list called values. Use the core math functions
1 answer
asked anonymously
27 views
The program below asks the user to enter several integers, which are added to a list called values. Use the core math functions
9 answers
asked anonymously
35 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
29 views
import math
import random seed = int(input("Enter game number: ")) random.seed(seed) rangeBottom = 1 rangeTop = 10 score = 0 for
1 answer
asked anonymously
19 views
chorus = 3 for i in range(chorus): print("Let's dance!") (1 point) Responses Let’s dance! Let’s dance! Let’s dance!
1 answer
asked by
Johovah_Witness
30 views
hich of these is not a data type built into Python? (1 point) Responses string string list list integer integer float
1 answer
asked by
Johovah_Witness
17 views
Which animal was responsible for a 99% drop in the opossum populations in the Everglades by 2012?(1 point)
Responses python
1 answer
asked by
random person
14 views
What does the following line of code do?
It creates a variable called num2 and sets it equal to 50.It creates a variable called
1 answer
asked anonymously
24 views
parameters in python
3 answers
asked by
KingofFire
9 views
display.show(Image('9000;' '09900;' '00000;' '00990;' '00009'))
13 answers
asked by
KingofFire
23 views
As you know, in Python a string data type can hold a character, word, phrase, or longer stretches of text. You have learned how
3 answers
asked anonymously
23 views
As you know, in Python a string data type can hold a character, word, phrase, or longer stretches of text. You have learned how
11 answers
asked anonymously
34 views
The program below asks the user to enter a word with 5 or more characters. It should then print messages showing the third and
1 answer
asked anonymously
13 views
The program below asks the user to enter a comma-separated list of food items as a single string. It should then break that
3 answers
asked anonymously
16 views
When using try / except to protect risky code, where should you place statements that are likely to throw a runtime exception?
Se
1 answer
asked anonymously
18 views
Why might you use a "while True:" loop to surround your user input and validation logic?
1 answer
asked anonymously
16 views
The program below asks the user to enter a comma-separated list of food items as a single string. It should then break that
1 answer
asked anonymously
19 views
What is the purpose of a try block in python?
to handle an erorr without the program crashing to try a math operation to see if
1 answer
asked anonymously
29 views
What is the purpose of a try block in Python?
(1 point) Responses to handle an error without the program crashing to handle an
1 answer
asked by
HELLOOOOOOOOOOOONURSE
24 views
Which of the following is the correct way to format a try block in Python?
(1 point) Responses try { num = int(input("Enter your
1 answer
asked by
HELLOOOOOOOOOOOONURSE
28 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 by
HELLOOOOOOOOOOOONURSE
27 views
What does sys.exc_info()[0] do?
(1 point) Responses imports the sys module imports the sys module accesses the error log accesses
1 answer
asked by
HELLOOOOOOOOOOOONURSE
48 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