Unanswered questions in Python

0 votes
0 answers

How to access Power BI Pro benefit for MCT?

How to access Power BI Pro benefit ...READ MORE

Oct 25, 2024 in Python by Evanjalin
• 21,930 points
207 views
0 votes
0 answers

Reading different format files from s3 having decoding issues using boto3

Am Trying to read text from different ...READ MORE

May 17, 2024 in Python by anonymous

edited Mar 5 61 views
0 votes
0 answers

root = tk.TK() ERROR, i dont get why ???

import tkinter as tk from tkinter import ttk # ...READ MORE

Oct 3, 2023 in Python by anonymous

edited Mar 5 49 views
0 votes
0 answers

What is print(f"...") ?

I'm looking at a Python script that ...READ MORE

Sep 18, 2023 in Python by Satyawrat
• 460 points

edited Mar 5 18 views
0 votes
0 answers

What is print(f"...")

I'm looking at a Python script that ...READ MORE

Sep 18, 2023 in Python by Satyawrat
• 460 points

edited Mar 5 43 views
0 votes
0 answers
0 votes
0 answers

How do I use Python to change YOLO format comments to x1, y1, x2, y2 coordinates?

I want to know how to change ...READ MORE

Sep 16, 2023 in Python by Satyawrat
• 460 points

edited Mar 5 21 views
0 votes
0 answers

How do I install opencv using pip?

I need to install cv2 for a ...READ MORE

Sep 13, 2023 in Python by Rahul
• 240 points
862 views
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers

In Python, retrieve color palettes from the website ColorHunt.co.

I am presently engaged in the development ...READ MORE

Sep 12, 2023 in Python by Satyawrat
• 460 points
533 views
0 votes
0 answers

What do the python file extensions, .pyc .pyd .pyo stand for?

What do these python file extensions mean? .pyc .pyd .pyo What ...READ MORE

Sep 12, 2023 in Python by Rahul
• 240 points

edited Mar 5 45 views
0 votes
0 answers

What do the three different types of brackets in Python code mean? I'm not sure if this is right, so if I'm wrong, please tell me:

[] - Normally used for dictionaries, list items () - ...READ MORE

Sep 11, 2023 in Python by Satyawrat
• 460 points
359 views
0 votes
0 answers

How to find the number of a list item ?

Given a list ["foo", "bar", "baz"] and ...READ MORE

Sep 11, 2023 in Python by Satyawrat
• 460 points
401 views
0 votes
0 answers

If I want to find the sum of a number's numbers, such as:

Input: 932 Output: 14, which is (9 + 3 + 2) What ...READ MORE

Sep 11, 2023 in Python by Satyawrat
• 460 points

edited Mar 5 27 views
0 votes
0 answers

I'm making a Python program to do math, figure out answers, and so on, but I'm getting the syntaxerror: "unexpected character after line continuation character in python."

This is my code: print("Length between sides: "+str((length*length)*2.6)+" ...READ MORE

Sep 7, 2023 in Python by Satyawrat
• 460 points
641 views
0 votes
0 answers

I have a very long list of datetime strings like these:

["Jun 1 2005 1:33PM", "Aug 28 1999 ...READ MORE

Sep 7, 2023 in Python by Satyawrat
• 460 points
464 views
0 votes
0 answers

Is it okay for general applications to use the RuntimeError exception?

raise RuntimeError('config file is missing host address') I've ...READ MORE

Sep 7, 2023 in Python by Satyawrat
• 460 points
313 views
0 votes
0 answers

How to use the open with statement to open a file

I'm researching file input and output in ...READ MORE

Sep 6, 2023 in Python by Satyawrat
• 460 points
591 views
0 votes
0 answers
0 votes
0 answers

How does super() operate in the presence of multiple inheritance? As an example, consider the following:

class First(object): def __init__(self): ...READ MORE

Sep 6, 2023 in Python by Satyawrat
• 460 points
402 views
0 votes
0 answers

What does %s in a Python format string mean?

For example, in the below code if len(sys.argv) ...READ MORE

Sep 5, 2023 in Python by Satyawrat
• 460 points
501 views
0 votes
0 answers

How to sort a dictionary using key?

Example input: {2:3, 1:89, 4:5, 3:0} Desired output: {1:89, 2:3, ...READ MORE

Sep 4, 2023 in Python by Satyawrat
• 460 points
529 views
0 votes
0 answers

How to sum the values of a JavaScript object?

I'd like to sum the values of ...READ MORE

Sep 1, 2023 in Python by Edureka
• 220 points
272 views
0 votes
0 answers
0 votes
0 answers

What do __init__ and self do in Python? [duplicate]

During my Python lectures, I've come across a ...READ MORE

Aug 31, 2023 in Python by Edureka
• 220 points
386 views
0 votes
0 answers

Python urllib2 login to minecraft.net

I have a doubt. I'm creating a ...READ MORE

Aug 31, 2023 in Python by Edureka
• 220 points
475 views
0 votes
0 answers

I want something related to python.

#  Don't change the code below print("Welcome ...READ MORE

May 14, 2023 in Python by Krishna

edited Mar 5 45 views
0 votes
0 answers

# cmds.select(myPlane. vtx[*]) # ^ # IndentationError: unexpected indent #

#     cmds.select(myPlane. vtx[*]) #     ^ # IndentationError: unexpected indent ...READ MORE

Apr 26, 2023 in Python by anonymous

edited Mar 5 52 views
0 votes
0 answers

invalid literal for int() with base 10: '1 2 3 4 5'

def strictlyInc(l):     for i in range(len(l)-1):         if l[i]>l[i+1]:             return "No"             break     return ...READ MORE

Apr 22, 2023 in Python by anonymous

edited Mar 5 50 views
0 votes
0 answers

Solve this: sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+.......... How can i write this code in python? Please help me!

n= int(input("number of sqrt(2)")) If n=3.  sqrt(2+sqrt(2+sqrt(2)) answer ...READ MORE

Mar 29, 2023 in Python by Munisa

edited Mar 5 47 views
0 votes
0 answers

How to solve the ZeroDivisionError: float division by zero after importing vpython

ZeroDivisionError: float division by zero PS E:\LearingVS> python ...READ MORE

Mar 28, 2023 in Python by Sheriff

edited Mar 5 24 views
0 votes
0 answers

What can you use generator functions for?

I'm starting to learn Python and I've ...READ MORE

Mar 20, 2023 in Python by anonymous
• 990 points

edited Mar 5 53 views
0 votes
0 answers

how to know the day (is it Monday, Tuesday or...) of a specific date in Python

I have a pandas dataframe with one ...READ MORE

Mar 20, 2023 in Python by anonymous
• 990 points

edited Mar 5 21 views
0 votes
0 answers

What do * and ** before a variable name mean in a function signature?

What do the * and ** mean in this code? def functionA(self, ...READ MORE

Mar 20, 2023 in Python by anonymous
• 990 points

edited Mar 5 22 views
0 votes
0 answers

square root of a number greater than 10^2000 in Python 3

I'd like to calculate the square root ...READ MORE

Mar 20, 2023 in Python by anonymous
• 990 points

edited Mar 5 47 views
0 votes
0 answers

Selection Sort in Python

This may seem like a simple question ...READ MORE

Mar 20, 2023 in Python by anonymous
• 990 points

edited Mar 5 42 views
0 votes
0 answers

Python - Count how many times keywords stored in a list appear in text

I have a list KeywordList of 20k+ ...READ MORE

Mar 16, 2023 in Python by anonymous
• 990 points

edited Mar 5 25 views
0 votes
0 answers

How can I get the source code of a Python function?

Suppose I have a Python function as ...READ MORE

Mar 16, 2023 in Python by anonymous
• 990 points

edited Mar 5 43 views
0 votes
0 answers

How can I get the source code of a Python function?

Suppose I have a Python function as ...READ MORE

Mar 16, 2023 in Python by anonymous
• 990 points

edited Mar 5 20 views
0 votes
0 answers

Crop a video in python

I am wondering to create a function ...READ MORE

Mar 16, 2023 in Python by anonymous
• 990 points

edited Mar 5 51 views
0 votes
0 answers

What is the most efficient way of finding all the factors of a number in Python?

Can someone explain to me an efficient ...READ MORE

Mar 16, 2023 in Python by anonymous
• 990 points

edited Mar 5 46 views
0 votes
0 answers

Why do Python classes inherit object?

Why does the following class declaration inherit ...READ MORE

Mar 16, 2023 in Python by anonymous
• 990 points

edited Mar 5 46 views
0 votes
0 answers

List vs tuple, when to use each?

In Python, when should you use lists ...READ MORE

Mar 15, 2023 in Python by Arya
• 990 points

edited Mar 5 20 views
0 votes
0 answers

Convert decimal to binary in python

Is there any module or function in ...READ MORE

Mar 15, 2023 in Python by anonymous
• 990 points

edited Mar 5 45 views
0 votes
0 answers

What do the python file extensions, .pyc .pyd .pyo stand for?

What do these python file extensions mean? .pyc .pyd .pyo What ...READ MORE

Mar 15, 2023 in Python by anonymous
• 990 points

edited Mar 5 20 views
0 votes
0 answers

How do I count the occurrences of a list item?

Given a single item, how do I ...READ MORE

Mar 15, 2023 in Python by anonymous
• 990 points

edited Mar 5 43 views