431 Answered Questions for the topic Python

Python

5d

ANother file input for cities

Use file in Canvas "File_Lab2.txt" for this lab.Read in the above file and write a program that prints the City and Temperaturefor Boston, Topeka and Tucsonthie file contains65 Tampa90... more
Python

9d

1. Write a python code

1. Write a python code to find the profit and new balance for each year in 5 years, if the annual rate depends on the balance in you account, if your account has more than 20000 the rate is 4%,... more
Python Coding

9d

Optimize my code by converting Recursion to Iteration or any other method

Question: Given the graph where vertices represent worksites and edges represent pairs of sites that must be able to communicate securely. what are the fewest worksites that can have the... more
Python

11d

Inputing file question

use the file "File_Lab1.txt" as input to your program.Write a program to print out the line number, the number of values in each line and total value of each line of the file.please include the... more
Python Coding

13d

creating a student and grade database in python

I have an project to make a student and grade data base that you can,add students to: enter name , age and addresssearch for students: by nameadd assignments; add the name of the assignment and it... more
Python

15d

Python quiz about return in functions

How many return statement can be added in a function in python

Computer Science Question - Python String slicing

so I need the date which is this 2001-08-11 to look this 08-2001 I need to slice it and the best I have come up with slicing it like this [ :7] which gives me the date to look like this 2001-08. I... more

Computer Science Question String Slicing

I want to make this date which is this 1985-08-01 what would be the numbers to make it look like this 08-1985 and the best I have done at slicing is doing this [ : 7] but that only gives me the... more

computer science- python Programming

I want to make this date which is this 1985-08-01 what would be the numbers to make it look like this 08-1985 and the best I have done at slicing is doing this [ : 7] but that only gives me the... more

Computer Science Python

I want to sting slice this date which is this 1985-08-01 to look like this08-1985

18d

QUESTION ON ARRAY

Given a circular array of integers, do the following operations stepwise :Value Index25 039 152 225 30 40 545 625 75 ... more
Python Rectangle Data 3d

20d

Plotting a 3D rectangle, with vertex starting at the origin, from a list of dimensions.

Hi,I have been struggling to find a resource that I truly understand and that is exactly what I'm looking for. I'm currently learning python, but working on it for my senior research project.So, I... more

23d

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

24d

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

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

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

25d

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

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

27d

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

28d

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

28d

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

29d

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

30d

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

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

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

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.