Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [python]

Python is a dynamically typed, multi-purpose programming language. It is designed to be quick to learn, understand, and use, and enforces a clean and uniform syntax. Note that Python 2 reached end-of-life on January 1st, 2020. For version-specific Python questions, add the version tag (e.g. [python-3.x] or [python-3.9]). When using a Python variant (e.g. Jython, PyPy) or library (e.g. Pandas, NumPy), please include it in the tags.

python
0 votes
0 answers
6 views

How can I downgrade the python in the terminal in visual studio code?

I have a piece of code I need to run but it is only compatible with tensorflow 1.3,1.4 and 1.5. I think I need to downgrade python in order to run this however the terminal has python 3.10 I have ...
user26530134's user avatar
0 votes
1 answer
14 views

Where to annotate python variables?

As I understand it, variables in Python work the same way as in Java. That is, when assigning, we bind a reference to the object to the right of the assignment to the variable (name) x in the current ...
otstalyi's user avatar
  • 163
0 votes
0 answers
4 views

JavascriptException Stale element not found after (multiple) redirects

I'm building a SeleniumBase scraper that takes a set of tasks and performs them on a website. After performing some actions on the site the script calls driver.execute_script("return window....
Victor's user avatar
  • 456
0 votes
0 answers
7 views

EMNIST not importing

So I was trying to import the emnist database but i'm not able to call the extract_training_samples. It keeps saying that the file is not a zip file. Im following the documentation given: https://pypi....
Aanya Bhandari's user avatar
0 votes
0 answers
15 views

Inserting a column into a csv that pulls from the name of the file in python

I'm trying to insert a column of "StatementDate" into a csv, where the date is in the title of the csv. This is dynamic and will change week to week. The formatting of the title is the same, ...
Jacob Lindsey's user avatar
0 votes
0 answers
12 views

How to use a Rust type with no apparent conversions in Python

I am making a Rust based library for Python using Pyo3 and maturin which implements different cryptographic protocols, and I'm having trouble working with the following crate pqc_kyber_edit, as I need ...
AthraelBB's user avatar
0 votes
2 answers
25 views

I wrote a code to separate even and odd numbers, but I encountered this error?

while True: num = input("pls type the number: ") # check if it's int or string number = int(num) except ValueError: print("error try again !!") ...
Aryana pourpilehvar's user avatar
2 votes
1 answer
11 views

Is there any situation where re.search could not be used instead of re.match?

The documentation seems clear but it begs the question, what is the purpose of re.match? Couldn't re.search with the caret (^) be used instead as long as the MULTILINE flag is not enabled? Is re.match ...
Kevin Eldurson's user avatar
-2 votes
0 answers
8 views

multiwii problems with speedybee450 v3

I’m building my own drone and the same problem from Boston is happening. The Flight controller for dd24 is not responding to flight_controller.py commands. The CLI is from dd24 and the firmware is ...
Jose Toribio's user avatar
0 votes
0 answers
12 views

read messages from public telegram channel using telethon

I am using Telethon to automate some stuff from Telegram channels. I have already obtained my API key, hash, and token and I can start a new session using Telethon. The problem is that when a new ...
JayJona's user avatar
  • 484
0 votes
0 answers
4 views

Why can I not see a failed invocation when my Azure Function times out?

I successfully tested a python azure function locally that once triggered in blob storage, converts any .xlsb files to .xlsx files. On a <100KB .xlsb file this took about a minute, and a ~70,000KB ....
SQL_Noob's user avatar
  • 151
0 votes
0 answers
8 views

Steps to deploy a react python full-stack app on AWS using S3, EC2, and Cloudfront? [closed]

I am making a full-stack blog app with react frontend and python backend. I like to deploy this using AWS. I'm nearly done but I can't figure out how to host the backend properly. I have the react ...
Khai's user avatar
  • 1
0 votes
2 answers
34 views

I want to write a program with the help of a for loop, but I ran into a problem

I need a help I am writing a program and I want it to show the largest number when I give it a set of numbers I did it up to a point, but it seems that there is a mistake again numbers=[12,4,3,4,27,89]...
Narges Ekhlasi's user avatar
3 votes
4 answers
38 views

How to filter Pandas Dataframe to integer values?

I have a dataframe column with string values. I want to filter to the rows that have integer. I can do the below to find if it's numeric, but this would return floats as well. result = pd.to_numeric(...
Melissa Guo's user avatar
  • 1,068
-2 votes
0 answers
14 views

SSH, how do i know username and password? why arent my tunnels working? [closed]

So ssh is something new i discovered, i want to bypass a network guard i made for experience, i cant seem to understand how ssh -N -L localhost:8000:localhost:80 root@servername now. i understand the ...
Devatrish's user avatar

15 30 50 per page
1
2 3 4 5
32