756 Answered Questions for the topic Python
Python Calculus
02/07/24
Given f(x) = 3^3x − 1/12x
Use a for loop (list comprehension) to evaluate the function at x = −0.1, −0.01, −0.001, −0.0001,then at x = 0.1, 0.01, 0.001, 0.0001 to numerically estimate limx→0 f(x).(b) Plot f on the interval...
more
02/07/24
Suppose you want to build a fence around a rectangular enclosure and have 200 yards of material to use.
In addition, suppose there is a long brick wall you can use for one of thesides. Let x denote the length (in yards) of the sides perpendicular to the brick wall.(a) Write the formula for A(x), the...
more
12/31/23
Unraveling Dijkstra's Algorithm: Finding Shortest Paths
Consider a weighted graph representing the distances between cities. Nodes represent cities, and edges represent the roads connecting them with associated distances. If City A is connected to City...
more
Python Computer Programming
12/05/23
A business major gives you a file named accounts. txt that contains transactions of three bank accounts (a sample is shown below). They ask for your help to compute the final balance of each account.
Each line of the file contains a letter, an arrow, and an integer representing one account. A single space separates each valueContents of accounts. txt:a < 123b > 456с < 78If the arrow...
more
Python
12/03/23
Beginner's beginner
I have been attempting to teach myself code, but it is not going well. I'm learning things like int, str and float. When it comes to doing the sample coding, I don't do well. My goal is to leave my...
more
11/23/23
8.18 LAB: Elements in a range
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 integers...
more
Python Computer Programming
11/17/23
keep getting this out come "free variable 'valid_passport' referenced before assignment in enclosing scope" please help out
def valid_passport(pp): requirements = {"pid", "hgt", "cid", "iyr","byr","eyr","ecl","hcl", "ecl"} # Inputs all required keys into a list return all(field in pp for field in requirements) or...
more
Python Computer Programming
11/17/23
keep getting this out come "free variable 'valid_passport' referenced before assignment in enclosing scope" please help out
def valid_passport(pp): requirements = {"pid", "hgt", "cid", "iyr","byr","eyr","ecl","hcl", "ecl"} # Inputs all required keys into a list return all(field in pp for field in requirements) or...
more
Python Computer Programming
11/06/23
Python problem Help ASAP Due today 11:00pm
Please avoid using any adcance coding like return, string(), and the f at the bottom to PLease help me modify this problem of mine to match the output: Been stuck on this for the past three days...
more
Python
10/27/23
Pytorch torch.distributed.launch v. torchrun
I found this GitHub Repo, https://github.com/hbzju/pico, which trains a pytorch model to identify mislabeled data in a dataset. I don't have much experience with torch and am trying to modify the...
more
Python
10/27/23
Would like to cancel a duplicate account
Hi, I have two accounts. One with the email address of ********@yahoo.com and another with *********. I was wondering if it would be possible to close the montclair.edu account. Would someone be...
more
Where is ChatGPT useful? Where is it not useful?
Where is ChatGPT useful?Where is it not useful?
Python Math
10/18/23
Nonstationary Bandit (Python Implementation)
I have to implement the Nonstationary Bandit Problem in Python and cannot figure out what's going on with my implementation. Would really appreciate a second set of eyes and someone to walk through...
more
Python
10/11/23
Looking for a Python tutor around the Fort Lauderdale area to teach me python coding
I have a working copy of a program coded in microsoft visual basic 6 that I want program in python
Python
09/21/23
I Booked a session and my tutor never showed up.
I booked a session for tutoring and my tutor never showed up. What do I do? How long should I wait in the future for someone to show up?
09/06/23
Python Code to Apply Gamma Correction to Image
I'm working on a computer vision project where I need to perform various image processing techniques like Gamma Correction, rotation, and thresholding on a set of images. Could you provide me with...
more
Python
07/31/23
(Sorted?) Write the following function that returns True if the list is already sorted in increasing order:
def isSorted(lst):Write a test program that prompts the user to enter a list of numbers separated by a space in one line and displays whether the list is sorted or not. Don’t use the Python list...
more
Python
07/31/23
See Exercise 7.9 in Chapter 7 Programming Exercise from the Book for the description.
Sample RunEnter numbers: 1.9 2.5 3.7 2 1 6 3 4 5 2 The mean is 3.11 The standard deviation is 1.55738
Python
07/31/23
(Count occurrence of numbers)
Write a program that reads some integers between 1 and 100 and counts the occurrences of each. Note that if a number occurs more than one time, the plural word “times” is used in the output. Note...
more
Python
07/27/23
Refund First Hour
Hello, I was not satisfied with my lesson with Sharon, and I wanted a refund. I didn't get anywhere with the lesson and Sharon didn't help me advance towards completing the assignment.
Python
07/25/23
one line to fix
lat1 = float(radians(self.lat))while debugging, it states "must be real number, not a string." How do I fix this?
Python Computer Programming
07/09/23
Python Programming
SpecificationsAssume that you are a farmer who grows flowers. You have 3 different colors of seeds: red, blue,and green. Each seed will grow into a different flower based on conditions including...
more
Python Data Science
07/04/23
Issue with Pandas DataFrame
There is a flaw in this codeThe code below reads the price of the symbol of a stock and then returns a set of optimal trades that can be made in the timeframe.The trades dataframe is a single...
more
Python Computer Programming
06/22/23
(Split digits) Write a program that prompts the user to enter a four-digit integer and displays the number in reverse order. Here is a sample run:
Enter an integer: 5213The reversal is3213
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.