Questions tagged [python-3.10]

A version of the Python programming language, first released on October 4, 2021. This tag is for issues that are specific to Python 3.10. For general questions use the more generic [python] tags.

Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation.

References

782 questions
-1
votes
1 answer

my python3.10 on anaconda mac can't install python-binance

My anaconda base(root) is using python3.9, I want a new version, so I installed a new virtual environment with python3.10. Then I use"conda install -c conda-forge python-binance" to get the python-binance, but get error like below. conda install -c…
-1
votes
1 answer

How to highlight the rows and columns in the output file?

from openpyxl import load_workbook, Workbook def find(wb, string): res = [] for ws in wb: for row in ws.values: for value in row: if value is not None and string in str(value): res.append(value) return…
Allison
  • 19
  • 3
-1
votes
1 answer

how to delete all the data in a sheet in excel?

from openpyxl import load_workbook wb = load_workbook("C:\op.xlsx") ws = wb.active This is the code I have so far as I don't know what to do next so pls help me.
Shrahbeel
  • 21
  • 6
-1
votes
2 answers

Python code Always returning None boolean when False should be returned

import random def gameres(comp, you): if comp == you: return None # when comp = r elif comp == 'r': if you == 'p': return True elif comp == 'r': if you == 's': …
-1
votes
2 answers

Determine the exact error of a long python line

I have long lines in my code such as: if (currentExcelDep[excelPackageName]== depDataCollection[depDataCollectionSet][depDataCollectionSetElement][excelPath] and currentExcelDep[excelPath].split("/")[1] ==…
Sipos Péter
  • 119
  • 1
  • 11
-1
votes
1 answer

How can I change a class variables in another class's function

I need to assign the self.current_location from class Robot to the self.location in the Class Grid, but i failed that, there is my code: class Grid: def __init__(self,size=10,location=(0,0)): self.size=int(size) …
-1
votes
1 answer

program is showing error in PhotoImage to open images in tkinter saying no such file or directory

I was making in GUI for a vending machine where i was trying to add images into the button but while making the program there the following error Traceback (most recent call last): File "e:\kanu\Coding Languages\VS code\4th semester\Data…
-1
votes
1 answer

Finding the middle of a list

So I am trying to find the median of the list "revenues" which will be named "base_revenue". Comments: #Assume that revenues always has an odd number of members #Write code to set base_revenue = midpoint of the revenue list #Hint: Use the int and…
-1
votes
1 answer

python command does not work, and shows no error

I just installed Python, and did add both "C:\Users\xxxxx\AppData\Local\Programs\Python\Python310" "C:\Users\xxxxx\AppData\Local\Programs\Python\Python310\Scripts" in the path environment variable. In the cmd, I can call pip with no problem. But I…
-1
votes
1 answer

Can't import pdftotext in python in my Mac M1

I can't import pdftext in my new mac M1. The steps I took are: Install python 3.10 Install command line developer tools pip3 install pdftotext from terminal Open IDLE, type import pdftotext I get this error: Traceback (most recent call…
Antonio
  • 21
  • 6
-1
votes
1 answer

I want to distinguish between true digit and a string digit

I want to check a 'x' string whether it is a digit or not in advance. '1' is naturally a digit. But and I will use ① what is calld a string number very much. I don't know the range of string numbers IDE judges as a digit. '①'.isdigit() returns…
Haru
  • 1,884
  • 2
  • 12
  • 30
-1
votes
4 answers

Python dictionary for loop calculation

I need to create code where a dictionary is created and I need to set the values for each key. I can do it manually but need to create a loop to do it, to shorten the code. The calculation works as following: Rank 1 = 2500 Rank 2 = Rank 1 + 7500…
-1
votes
1 answer

how do i make googletrans to work for a simple hello world translation?

Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. from googletrans import Translator translator =…
-1
votes
1 answer

Creating User in Active-Directory in Flask dont work

I have a Flask Webserver running with a site where you can create a user in my Windows Active-Directory. If I run the script as a separate file and set the variables manually it works as it should. But when I try to use input from the website in my…
Niklas
  • 436
  • 1
  • 4
  • 16
-1
votes
1 answer

Pip showing up an not installed even though I downloaded python?

running windows 10 and IDLE python 3.10.1 I was trying to install pygame with pip using the pip install pygame command but couldn't get it to work. I've been reading loads of articles trying to figure out what to do but I have no idea. When I opened…
tonks179
  • 7
  • 3