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

I want to add a new customer to the customers library (dict) and to save it in the dict so when I want to add another it'll add and not replace them

this is the code i used in the LibraryCustomers.py module: class Customer: """ A class that represents the Customer object """ def __init__(self,customer_id,customer_name,customer_city,customer_age): """ A function that…
dorbtz
  • 47
  • 5
-1
votes
1 answer

Difficulty installing PyAudio on Mac M1

Please note the answers already provided on Stack Overflow have not worked for me. Including, but not limited to: brew update brew install portaudio brew link --overwrite portaudio pip install pyaudio I could use some help from someone who is…
OHP
  • 111
  • 8
-1
votes
1 answer

multiple checkboxes again in python

I am a noob, I am trying to create many checkboxes at once. ultimately, my program would create folders in the same directory, depending on which ones have been checked. I simply do not get the IntVar() use. I would love for some of the boxes to be…
zuktoor2
  • 3
  • 2
-1
votes
2 answers

pycharm ide gives syntax error with python 3.10 but code is working fine

hi I just installed windows 11 and python 3.10 and pycharm 2021.2.2 now when I use python 3.10 in pycharm and use some new features in python 3.10 i get some highlight in my code but the code is working fine here is what I'm experiencing : i really…
HadiH2o
  • 302
  • 2
  • 18
-2
votes
1 answer

Upgrade python from 3.7.x to 3.10.x using BREW on Mac 13.3.1 (a)

Trying to upgrade my python version, but I think I'm missing something significant. $brew install python@3.10 ==> Downloading…
Anand Rockzz
  • 6,072
  • 5
  • 64
  • 71
-2
votes
1 answer

from collections import MutableMapping, namedtuple ImportError: cannot import name 'MutableMapping' from 'collections'

from pymongo import MongoClient I use the mongoDB to store my data, python version 3.10 , mongoDB the latest. But I kept getting the error: `from collections import MutableMapping, namedtuple ImportError: cannot import name 'MutableMapping' from…
-2
votes
1 answer

How to scrape the webapp clock value using Selenium and Python?

I am trying to use a webapp clock vs. my system clock to trigger events. I want to scrape the value of the webapp clock (serverClock). The source code for the page contains:

Today's date is:…

-2
votes
1 answer

Never coded before so help would be appreciated

The error message I am getting is: Traceback (most recent call last): File "C:\Users\dabea\Downloads\3DPrintedRecord-master\wavtotext.py", line 29, in frameInt = list(map(ord, list(frame)))#turn into array TypeError: ord() expected…
helpmelol
  • 1
  • 1
-2
votes
1 answer

Is it possible to make a program to pick out any string that the user gives from the excel sheet given

from openpyxl import load_workbook wb = load_workbook("C:\op.xlsx") ws = wb.active Here is the code I have so far. Basically, I want to create a program in which python asks for a string and finds that string in the excel file given. Then it prints…
Shrahbeel
  • 21
  • 6
-2
votes
1 answer

What is wrong with my code of deleting duplicates from a list?

number = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1] number.reverse() for element in number: if number.count(element) > 1: number.remove(element) number.reverse() # when I execute this program…
-2
votes
1 answer

How to filter a specific column in excel using openpyxl?

from openpyxl import load_workbook wb = load_workbook("C:\ktl.xlsx") ws = wb.active This is the code I have so far, as I don't know what to do next. So basically I want to open "C:\ktl.xlsx" and make python filter column five for me, when I give…
Allison
  • 19
  • 3
-2
votes
1 answer

How to use any function by a decorator regardless of its arguments in Python

I'm looking to create a function that will return how long it takes to execute any other function (maybe it can be done with a library but in principle I'm looking to implement it natively). I am looking to implement it in a native way), a priori it…
offerrall
  • 9
  • 2
-2
votes
1 answer

Python Pip install

WARNING: You are using pip version 21.2.3; however, version 22.0.4 is available. You should consider upgrading via the 'C:\Users\nelvine\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command. that is the error…
EddyWes
  • 1
  • 1
-2
votes
2 answers

Utilising for loop and numpy.tile to create an array of alternating values i.e. (1, -3, 5, -7, 9, -11...)

Is it possible to combine for loop and numpy.tile to create an alternating incremental array?
Thomas.F
  • 7
  • 1
-2
votes
1 answer

How to skip certain part strings if the coefficient is zero?

In this question, we want to return the function like this result but I do not want things like 0^5 to occur(because 0^5 is equal to 0 and I do not want to show that, how can I write a code to let the system detect that the several parts are 0? And…
1 2 3
51
52