766 Answered Questions for the topic Python
What is the difference between old style and new style classes in Python?
What is the difference between old style and new style classes in Python? When should I use one or the other?
03/18/19
Any python library to access quickbooks?
I want to integrate my mobile POS system with quickbooks. I need customers, sellers, inventory & post orders & invoices.
I have not not been able to find a python library for this. Is...
more
03/13/19
Does Python have a ternary conditional operator?
If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?
Python Html
03/03/19
How to call python from python + html code?
Friends, I have a python program which runs html program to create box as follows which runs on wamp server:**box.py:** #!C:/python27/python.exe -uprint "Content-type: text/html...
more
02/18/19
oops in python.
Write a program using object oriented method to calculate the area. It should require two attributes width W and Height H.2. Write a program using OOP method to calculate the area. It should...
more
Python
10/09/18
Write a program script that traverses through an input string and prints its characters in different lines -- two characters in a line
this is from python programming
Python Programming
09/16/18
How to move down lines in python?
Hello, when I am typing something in command prompt with python activated, I am able to write programs in the first line only. When I press enter, the program executes with just the first line,...
more
Python
09/03/18
Write a Python code to calculate the speed for running a 10-kilometer race in 1 hours 5 minutes 42 seconds.
Write a Python code to calculate the speed for running a 10-kilometer race in 1 hours 5 minutes 42 seconds. What is the average pace (time per mile in minutes and seconds)? What is the average...
more
Python
09/01/18
Create a function that pulls a picture from a URL and creates a thumbnail saved on your local machine
Create a function that pulls a picture from a URL and creates a thumbnail saved on your local machine
Python
07/23/18
Question about Python functions
In the abbreviated code below, how do the upper pairs relate to the function below them? Thank you.
height_m3 = 2.5name3 = "Mary"weight_kg3 = 160def bmi_calculator(name, height_m, weight_kg):...
more
Python
05/16/18
Python try-else
What is the intended use of the optional else clause of the try statement?
Python
05/16/18
Converting from a string to boolean in Python?
Does anyone know how to do convert from a string to a boolean in Python? I found this link. But it doesn't look like a proper way to do it. I.e. using a built in functionality, etc.The reason I...
more
Python
05/16/18
How to subtract a day from a date?
I have a Python datetime.datetime object. What is the best way to subtract one day?
Python
05/16/18
How to remove the first Item from a list?
I have the list [0, 1, 2, 3, 4] I'd like to make it into [1, 2, 3, 4]. How do I go about this?
Python
05/16/18
How do I check the file size in python?
I am writing a Python script in Windows. I want to do something based on the file size. For example, if the size is greater than 0, I will send an email to somebody, otherwise continue to other...
more
Python
05/16/18
How do you measure time elapsed in Python?
What I want is to start counting time somewhere in my code and then get the passed time, to measure the time it took to execute few function. I think I'm using the timeit module wrong, but the docs...
more
Python
05/16/18
Getting the length of an array in Python
In Python, is the following the only way to get the number of elements?arr.__len__()If so, why the strange syntax?
Python
05/16/18
How to iterate over rows in a DataFrame in Pandas?
I have a DataFrames from pandas:import pandas as pdinp = [{'c1':10, 'c2':100}, {'c1':11,'c2':110}, {'c1':12,'c2':120}]df = pd.DataFrame(inp)print dfOutput:c1 c20 10 1001 11 1102 12 120Now I want to...
more
Python
05/16/18
What is the best Python web app framework and why?
Python
05/16/18
Name few methods that are used to implement Functionally Oriented Programming in Python?
Python
05/16/18
How do you check the file existence and their types in Python?
Python
05/16/18
How would you define a protected member in a Python class?
Python
05/16/18
How do youretrieve data from a table in MySQL database through Python code? Explain.
Python
05/16/18
Differentiate between .py and .pyc files?
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.