Questions LLC
Login
or
Sign Up
Ask a New Question
Python
Page 2
Questions (402)
Write a Python function called encode( string_to_be_encoded, is_case_sensitive=True ) that takes a string, which will be encoded
1 answer
asked by
MJ
297 views
Write a program that welcomes the user to the Payroll Calculator and prompts him to enter an employee first name, an employee
1 answer
asked by
HV
332 views
According to the following code. Which option is showing the correct way of creating a list of 10 Circle Objects?
class Point:
1 answer
asked by
Joe
287 views
Write a program that prompts the user to enter a number representing the speed a car is travelling.
1 answer
asked by
Laxmi
397 views
What is a list in Python?
4 answers
asked by
Vani sharma
350 views
The question is: You have recently been employed by a company that specialises in application development. Your first
project is
2 answers
asked by
aria
520 views
Using functions and two lists write a Python program that asks the user to input each students ID number
and a final grade for
4 answers
asked by
mike
1,880 views
Convert Algorithm into basic python code using correct syntax:
1) get hours worked 2) get pay rate 3) if hours worked < 40 3.1)
3 answers
asked by
anonymous
598 views
Hi,I'm an absolute beginner in this field and this may be a dumb idea.But as mind came up with this,I simply doesn't feel like
1 answer
asked by
S
383 views
How do you check if the words exist in the sentence in Python?
So far I have got... the_sentence = ("I love chocolate and
2 answers
asked by
Reece
606 views
Need help how to do this not sure how or anything can someone help please.
Which class contains the function pow ? Write the
3 answers
asked by
Poohboi
388 views
On python/pyscripter using the turtles i have to write a program that has 3 functions: drawA(), drawB(), drawC() each draw a
1 answer
asked by
sakura
476 views
rem prints fibonacci series
cls a=2 b=1 for p = 1 to 5 print a print b a=a + b b=b + a next p end I have done this program. How
4 answers
asked by
mark
527 views
Using python write a program that does the following:
•Create the logic for a program whose main() method prompts a user for
2 answers
asked by
Christina
551 views
Using python write a program that does the following:
•Create the logic for a program that calculates and displays the amount
1 answer
asked by
Christina
712 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
3 answers
asked by
Olorious
73 views
Does anyone know the methods to swap two items in a list in Python?
1 answer
asked by
Lennium
454 views
In Python - A state creates license plates, each containing two letters followed by three digits. The first letter must be a
5 answers
asked by
Sheryl
1,088 views
I am trying to put the following in Python Code. I know how to do it mathematically, but code - not sure where to start.
A state
1 answer
asked by
Sheryl
405 views
Question: If you cannot view all your data because it contains too many columns, what code should you use?
Responses: 1.)
3 answers
asked by
Olorious
89 views
1. Consider the relation race. What is displayed by len( race ) •10 •3 •9 •4 2.
3 answers
asked by
Olorious
42 views
1. Consider the relation race. What is displayed by len( race ) •10 •3 •9 •4 2. Consider the relation race. Which code
3 answers
asked by
Olorious
120 views
Which function produces a text in Python language?(1 point) Responses return return def def string string print
3 answers
asked anonymously
101 views
Which one of these is the correct way to display the variable var, containing number 1 as value, to the console?(1 point)
3 answers
asked anonymously
177 views
Python 3
For this option, you will first ask "how many rows?", and get a positive integer from them. Next, you will ask "how many
1 answer
asked by
sand
447 views
def_discount_voucher(voucher, amount)
discount = 0 if voucher == 'Flat 50': discount = 0.5 * amount elif voucher == 'Flat 30':
3 answers
asked anonymously
44 views
Demonstrate how can we display the value of key “year” using the get method in the code. (1 point)
Responses 1.)
3 answers
asked anonymously
75 views
How can i tell python to stop printing something after a specific amount of time?
1 answer
asked by
Sally
280 views
Consider the relation race. What is displayed by len(race)? (1 point) Responses 9 9 10 10 3 3 4
3 answers
asked anonymously
55 views
What is the result of running this code?
print(6**2) (1 point) Responses 12 12 36 36 an error message an error message 6**2
3 answers
asked anonymously
123 views
In Python, the input function always returns a:
(1 point) Responses Boolean variable. Boolean variable. string. string. number.
3 answers
asked anonymously
61 views
In Python, print() is an example of:
(1 point) Responses a function. a function. a directive. a directive. an assignment. an
3 answers
asked anonymously
58 views
Which function produces a text in Python language?(1
3 answers
asked anonymously
43 views
Which one of these is the correct way to display the variable var, containing number 1 as value, to the console?(1
2 answers
asked anonymously
57 views
The range function in Python has the definitions range(stop) or range(start, stop[, step]). The following code snippet will
3 answers
asked anonymously
56 views
Which line in the following code is creating the spot Dog? 1 class Dog: 2 def __init__(self, breed, color): 3 self.breed = breed
3 answers
asked anonymously
108 views
The complex function in Python is a built-in function that stores numbers as complex numbers. The syntax is complex ([real[,
3 answers
asked anonymously
77 views
write a program that accept the name of a student score obtained in 5 courses and compute the average score of the student.your
2 answers
asked by
martin
775 views
Which of the following is an example of event-driven code?(1 point)
Responses import turtle t = turtle.Turtle() wn =
5 answers
asked anonymously
110 views
Create a new project Lab05e, and write a program that asks the user to enter a line. The program must find the one or more words
1 answer
asked by
eric
464 views
Consider the relation race. What is displayed by len(race)?
(1 point) Responses 10 10 4 4 9 9 3
3 answers
asked anonymously
43 views
The range function in Python has the definitions range(stop) or range(start, stop[, step]). The following code snippet will
3 answers
asked anonymously
76 views
Write a Function
You will be given one of the following problems to solve using and writing Python functions. Given a list of
2 answers
asked by
Ben
1,019 views
Write a function in Python:
Given a list of words, indicate whetehr the list constitutes a "Word Ladder." A Word Ladder is a
1 answer
asked by
Victoria
1,031 views
Which of these is NOT a built-in data structure in Python?
(1 point) Responses list list tuple tuple tree tree dictionary
3 answers
asked anonymously
49 views
Which line of code will create a Python dictionary?
(1 point) Responses sideItems = {"steak" : "baked potato", "enchiladas" :
3 answers
asked anonymously
85 views
Which line of code will correctly create a Python list?
(1 point) Responses availableColors = "red", "yellow", "blue"
3 answers
asked anonymously
78 views
fix the bad input on line 3
python class Chatbox: def __init__(self): self.responses = { "hi": "Hello! How can I assist you with
3 answers
asked anonymously
44 views
fix the bad input on line 3
python class Chatbox: def (self): self.responses = { "hi": "Hello! How can I assist you with
3 answers
asked anonymously
54 views
Fix EVERYTHING WRONG WITH THE CODE
python class Chatbox: def self.responses = { "hi": "Hello! How can I assist you with recycling
3 answers
asked anonymously
64 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