756 Answered Questions for the topic Python

Python

05/15/21

Dictonary_Assignment

1. Give three examples of real-world objects that behave like a dictionary.2. Assume that the variable data refers to the dictionary {“b”:20, “a”:35}.  Write the values of the following... more
Python

05/15/21

FP_Lab7........

Use the following file as input:  Track.txt open file information. When writing the open statement for both files add this to the statement(see in red)open("Name of your file",... more
Python Coding

05/10/21

Python "Mad Libs "

create "Mad Libs" with Python.First, you must find out the age of the user.If the user is less than 6, they cannot play.Based on their age, they will play one of these 3 types of Mad Libs:age 6-12... more

The problem below is data science that I nee to solve using python programming and regression. Can any one solve it

The mathematical model of tumor growth   4.  Now our goal is to fit the time evolution of the growth of this tumor, using a mathematical model. To do so, we need to find the best-fit parameters of... more
Python

05/08/21

Use Python code to find the sum of all the primes below two million.

I tried but did not run. Please help!! Here is my code:def findPrime(z): for y in range(2, z): if (z % y) != 0: return False break else: return True breakprimesL = []for x in range(2, 2000000):... more
Python

05/03/21

FP_Lab5 inputing with files

Create a program that writes to a file.The program must take user inputs of First Name, Last Name, Street address, City, State and ZipCode.If the State a user enters is: PA ,NJ, DE, MN, NH use the... more
Python

04/30/21

Lab 5 Python Lists

include header information in your program and just submit the program.Create a program that writes to a file.The program must take user inputs of First Name, Last Name, Street address, City, State... more
Python

04/27/21

python making lists with cities

# the below list contain 10 values each # the lists elements are all related by index position # example Moscow, 65 , s are related # example London, 68, sp are related # Season and Temperature... more

04/26/21

write a python program

Consider the following formula and evaluate the y value for the range of t values found in a file with format 𝑦(𝑡) = 𝑣0𝑡 − 0.5𝑔𝑡 File Format:v0 3.0 t: 0.15592 0.28075 0.36807889 0.35 0.57681501876... more

04/26/21

write a python program

Consider the following formula and evaluate the y value for the range of t values found in a file with format 𝑦(𝑡) = 𝑣0𝑡 − 0.5𝑔𝑡 File Format:v0 3.0 t: 0.15592 0.28075 0.36807889 0.35 0.57681501876... more
Python Coding

04/24/21

How Can I Add a Receipt?

Hello I'm working on an assignment and I want to figure out how I would be able to save which items the user chooses and how many times he chooses that item so I can form a receipt. This is what I... more
Python

04/15/21

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

04/11/21

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

04/11/21

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

04/11/21

FP_Lab_1.......

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.file name is File_Lab1.txt.output example:Line 1 has 3 values and total is... more
Python

04/09/21

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

04/07/21

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

04/05/21

Python quiz about return in functions

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

04/04/21

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

04/03/21

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

04/03/21

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

04/03/21

Computer Science Python

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

04/02/21

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

03/31/21

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

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.