756 Answered Questions for the topic Python
Python Computer Science
03/28/21
Computer science 1-python
Prompting the user to enter which column number using 1-6 and checking if it’s a number and if it’s a number 1-6 using a while loop and lists
Python Dice Game
03/27/21
python dice game
python dice game! I want to make it as simple as possible!!! I don't want to use "def" I want it in while loops and if statements!! Craps is a dice game played with two 6 sided dice. Play the demo...
more
03/26/21
How should I create this file?
Create a class called Blobber inside of a file called blobber.py. Your Blobber class should have the following properties:
A private float data field called radius
A private float data field called...
more
03/26/21
What should I fill in to the spots that I am supposed to fill in?
Use the provided code file to complete the task to match the video. Use the starter code provided. Note that the class is defined in the same file as the main function. This is for convenience and...
more
Python
03/26/21
Unit_5_Lab_3...
Teachers in most school districts are paid on a schedule that provides asalary based on their number of years of teaching experience. For example,a beginning teacher in the Lexington School...
more
03/25/21
how do I calculate average value of columns of a file in Python?
import pandas as pdmy_file = pd.read_csv("file.tsv", sep="\t")my_file.head()my_file['item_price'].mean()I could easily do this by using Pandas. However how could I do it without using Pandas?...
more
Python Statistics
03/24/21
Consider a dice game
· All players start with 10 points.· A dice is rolled, and if the number on the dice is 1, 2, 3, 4 or 5, this number is added to each player’s score. If the number is 6, the score off...
more
Python
03/23/21
The question is based on normal random variable
(1) X is a standard normal random variable N(0,1). Write a piece of code to compute the probability P(-0.3<X<2.1).
Python
03/23/21
The question is based on normal random variable
(1) X is a standard normal random variable N(0,1). Write a piece of code to compute the probability P(-0.3<X<2.1).
Python
03/22/21
Unit_5_Lab_2...
submit one .py file. A local biologist needs a program to predict population growth. Theinputs would be:the initial number of organisms,the rate of growth (a real number greater than 0),the number...
more
Python Computer Science
03/22/21
elements in a range
In python:Write a program that first gets a list of integers from input. That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all...
more
Python Computer Programming
03/19/21
College level Python
A pattern in a DNA sequence is defined using A, T, G, and, C repeatedly. Scientists often need to find the most recurring pattern of a specific length in the DNA sequence. I need to make a Python...
more
Python Computer Programming
03/19/21
College level Python
Write a Python program for a grocery store to keep track of the fruits and prices in the store. The manager can enter a fruit’s name, followed by its prices in one line. A comma should separate the...
more
Python
03/17/21
Python Unit 5lab 2
A local biologist needs a program to predict population growth. Theinputs would be:the initial number of organisms,the rate of growth (a real number greater than 0),the number of hours it takes to...
more
Python
03/17/21
Strings Lab 3 questions
Separate the 4 programs with blank lines to make it more readable and label each problem such 1,2,3,4. I dont need extensive comments only the header section.Each problem is worth 10...
more
Python Dice Game
03/16/21
python dice game
Craps is a dice game played with two 6 sided dice. Play the demo to see how it works.The rules of the game of Craps are as follows:You roll two dice. On the first roll of a game, if the sum of the...
more
Python
03/15/21
UUUUnit_5_Lab_1
submit on .py file, follow the rubric, standard header applies. A standard science experiment is to drop a ball and see how high itbounces. Once the “bounciness” of the ball has been determined,...
more
Python
03/15/21
Strings_Lab_3.1
submit one .py file. Separate the 4 programs with blank lines to make it more readable and label each problem such 1,2,3,4. I dont need extensive comments only the header section.Each problem is...
more
Python
03/13/21
Python assistance
When you work on a peloton bike you burn 35 calories per mile.
# Write a program that uses a loop to display the number of calories burned after each mile (1, 3, 5, and 7).
# Pass in miles and...
more
Python
03/12/21
Strings methods reading
Unit_5_StringsReadings: Python_by_LambertChapter 4, Section 4.4 String Methods 1. Assume that the variable data refers to the string “Python rules!”. Use a string method from Table 4.2 to...
more
Python
03/10/21
Strings_Reading_4.1
Assume that the variable data refers to the string “myprogram.exe” Write the values of the following expressions:
data[2]
data[-1]
len(data)
data[0:8]
“gram” in data and “pro” in data
Assume...
more
Python
03/10/21
Strings_Reading_4.2
Write the encrypted text of each of the following words using a Caesar cipher with a distance value of 3:(Use the sample code they provide)
python
hacker
wow
2. Consult the Table of ASCII...
more
Python
03/10/21
Strings reading 4.2
Readings: Python_by_LambertChapter 4, Section 4.2 Data Encryption Write the encrypted text of each of the following words using a Caesar cipher with a distance value of 3:(Use the sample code...
more
Python
03/09/21
Reading questions
Readings: Python_by_LambertChapter 4, Section 4.1 Substrings Assume that the variable data refers to the string “myprogram.exe” Write the values of the following...
more
Python
03/08/21
Loops_Reading_3.1
Write the outputs of the following loops
a. for count In range(5):
print count +...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.