756 Answered Questions for the topic Python

06/22/23

(Find the number of years and days)

Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Here is a sample... more

06/22/23

(Financial application: calculate tips)

Write a program that reads the subtotal and the gratuity rate and computes the gratuity and total. For example, if the user enters 10 for the subtotal and 15% for the gratuity rate, the program... more

06/22/23

(Geometry: point in a rectangle?)

Write a program that prompts the user to enter a point (x, y) and checks whether the point is within the rectangle centered at (0, 0) with width 10 and height 5. For example, (2, 2) is inside the... more

06/22/23

(Science: day of the week)

Zeller’s congruence is an algorithm developed by Christian Zeller to calculate the day of the week. The formula ish=(q +26(m+1)//10+k+k//4+j//4+5j)%7where- h is the day of the week (0: Saturday, 1:... more

06/22/23

(Find the number of days in a month)

Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2000, the program should display... more
Python

06/06/23

PHYTHON PROGRAMMING

.1 Is a Number Divisible by 5? #A program that asks for an integer. Determine if the value is divisible by five and print that out.Sample Output:>#Run #1Enter an integer: 10The number you... more

Online Resources for ML/NNs

I am a novice programmer with a bit of conceptual background in ML/NNs, but I haven't programmed much in Python. Besides tutorials like Kaggle or platforms like Coursera/Edx, what are some free... more
Python

05/23/23

What are the benefits of Python scripting in Excel versus VBA?

05/14/23

How do I excel at Python if I have no programming experience?

I'm just started intro to Python. Most of my classmates have programming experience. I feel like an idiot. Should I drop out or continue?

Python Programming - Reading & Resizing Videos in Google Colab Using OpenCV

I used the below code to read and display a video file in Google Colab. However, I do not understand how to resize it to a specific size. Any help would be highly... more
Python

05/01/23

Extract Hand written text on second page of multiple PDF files using python

I am beginner in python and not sure how to go about achieving this task. I have several scanned PDF files in a folder. The hand written text that I am interested in extracting is in the second... more
Python

04/06/23

First Session refund if not satisfied

Hi I would like to check if the first session with wyzant is free or not. What if I do not find the right solution with the tutor
Python

04/06/23

Good fit policy with a refund

Hi,So far my son has tried 2 tutors for python. None of them could help with his homework. I am going to try another one. I remembered you offer the good fit policy which will help find the right... more

how to do this in python?

Import the CSV module this csv: name   common_color.  peal   typeapples     red          waxy   fruitoranges    orange       ... more

I need help getting the correct output for my function. *Check comments for more info*

def run_sim(stops, boarding_rate, exiting_rate, passengers):  stop_count = 1  while stop_count <= stops:    if stop_count == stops:      boarding = 0      departing =... more

I need help getting rid of a line of code without messing up the code*Look at comments ran out of characters*

def run_sim(stops, boarding_rate, exiting_rate, passengers):  stop_count = 1  while stop_count <= stops:    if stop_count == stops:      boarding = 0      departing =... more

I need help getting rid of a line of code without messing up the code

def run_sim(stops, boarding_rate, exiting_rate, passengers):  stop_count = 1  while stop_count <= stops:    if stop_count == stops:      boarding = 0      departing =... more

Whats wrong with my code here? python

import csv import lasal_acreage # import statement to import csv module import csv def sum_acreage(file_name): sum = 0 with open(file_name, newline='') as csvfile: reader =... more

Why do I get an error when i run this?

import practice as func import db_base as db import xml.etree.ElementTree as ET class tracks(db.DBbase): def __init__(self): super().__init__("tracksdb.sqlite") def... more

Need help with my code

function 1def silly_strings(string):  words = [] word = "" for i in range(len(string)):  if i%2 == 0:   word += string[i].upper()  else:   word += string[i].lower()  if i%2 ==... more

02/27/23

count list python

Write a function named passwords(my_list), which takes a list of passwords as an argument and returns the list containing the number of digits, number of letters and number of other characters of... more

how to code in python?

Create a new class called Person. Add 3 attributes (or fields) called first_name, middle and last_name.Add a function called format_name() and return all 3 attributes.(Hint: Use the same function... more

how to code this in python?

 Create a class called Simplest() and use the pass statement.Answer the following questions:a. Using the code below, what type is this object?print(type(Simplest))b. Create an instance of Simplest... more

how to do this?

Create a new function in your functions.py script called getAnswer() that takes one numerical argument called answerNumber.use the following code inside the new getAnswer() function: if... more

how to code this?

1.Create 2 functions; one to convert a value from Fahrenheit to celsius and the second function to convert from celsius to Fahrenheit, remember to return the values in the function statement.Create... 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.