473,544 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
322
92,196
bartonc
thread by: bartonc | last post Apr 30 '23 by: momo1014
For the benefit of those of us who answer questions, PLEASE REPLY in this thread with your operating system, version of python that you are using, editor/IDE, and anything extra like GUI toolkits, etc. Thank you very much.
0
66
thread by: AndryRe | last post 2 Days Ago by: AndryRe
Hello. I'm facing a problem with the Tk library. I teach Python programming to children. We are studying turtle graphics, which uses Tkinter resources. I noticed that in python 3.12 the turtle paints self-intersecting polygons using the odd-even algorithm. I previously taught python 3.9 to 3.11. These versions used a non-zero filling algorithm...
1
10,479
thread by: Defcon1945 | last post Mar 28 '24 by: dev7060
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
30,274
thread by: fareedcanada | last post Mar 28 '24 by: dev7060
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like 1,13,1,15,16,17 I am trying to code like if linecnt == 12 : numList = ...
1
17,328
thread by: marcoviolo | last post Mar 28 '24 by: dev7060
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a folder exits or new folder. Can you help me ? Thank you in advance. Marco
4
39,513
thread by: autodeveloper | last post Nov 6 '23 by: codiumltd
I need scraping the list from spotify, for example: "https://open.spotify.com/playlist/6iwz7yurUKaILuykiyeztu As the list is dynamic loaded, I use iterate index to search each item, as (https://www.clicknium.com) can automatically scroll to the item, it will trigger to load new items. I use parametric locator for title and author ...
2
26,170
thread by: giovanniandrean | last post Oct 18 '23 by: codiumltd
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions interest rate in two functions) 2-ModelSettings.py is in charge of setting the model data, here you specify the structure of the data (mentions interest...
8
48,599
thread by: TrepidEli | last post Sep 27 '23 by: codiumltd
For the last 6 month's i've used notepad and an FTP client to code. Right now i code using Python, JS, HTML & CSS languages. Any suggestions for a good code editors? What should i look for in a good code editor? I would like to keep at a fast pace of work and not spend a great deal of time learning a new tool Any other good tools i...
0
6,874
thread by: Rina0 | last post Sep 11 '23 by: Rina0
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in Java. Can anyone help me translate the Java code into Python? Here is the Java code from the blog post: java public static int...
0
11,198
thread by: cosmere | last post Sep 5 '23 by: cosmere
Hello I'm trying to create a basic game in python using OOP style programming. The problem is that I'm not sure how to link my files. I currently have main.py, a game.py and a logic.py. I would like to be able to run everything from my main.py through the start_game method. However if I run the code below I get the following error: TypeError:...
1
19,120
BarryA
thread by: BarryA | last post Aug 7 '23 by: erikbower65
I'm presently working on a backend development project to build a RESTful API using Python and Flask. Although I've had assistance with this site (Illegal link removed), I've seen a drop in performance as the amount of API queries rises. Especially during times of high usage, the response times are slower than I would want them to be. Here's a...
0
4,015
thread by: raphael ambrosi | last post Aug 4 '23 by: raphael ambrosi
Hi I am trying to write a test grpc client and service in python. When I use an insecure channel, everything works stably, but if I try to establish a tls connection, an error occurs. To write code and create a chain of certificates, I used this guide https://github.com/joekottke/python-grpc-ssl.How can I make this example work? grpcio version :...
0
13,743
BarryA
thread by: BarryA | last post Jul 25 '23 by: BarryA
Hello everyone, I'm hoping you can help me with a difficulty I'm having with my Sentiment Analysis project. I've been attempting to apply a simple sentiment analysis model to a dataset of movie reviews, but I'm getting some surprising results. Here's the pertinent section of my code: import pandas as pd from sklearn.model_selection import...
2
26,003
Romlus
thread by: Romlus | last post Jun 28 '23 by: Eliadoming
In the Knytt Underground game written in Python, ini files are used with English dialogue text (key = value - value is some dialogue phrase), when I entering the Polish character eg. ęąćź displays '?' I tried to type escape character sometext\x119sometext sometext\u119sometext But it s not working. Game single backslash \ reads as a line...
1
15,786
thread by: kermitthefrogpy | last post Jun 26 '23 by: Eliadoming
Good morning everyone. So here we go with the task. Write a function that translates some text into Pig Polish and vice versa. The Polish language is translated into Pig Polish by taking the first letter of each word, moving it to the end of the word and adding ano. 'Ala ma kota' becomes .
2
9,221
thread by: Matthew3360 | last post May 29 '23 by: Matthew3360
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get the variables values of the webpage and print them in my python terminal. Also the variables values are stored in a database. Would pythons http...
0
6,229
thread by: ufm123 | last post May 1 '23 by: ufm123
How to plot text in color? This option of Python is missing in matplotlibcpp within Visual Studio -> works only in b/w ! Who has a solution to solve the problem? UFM
1
11,163
thread by: 10min | last post Apr 10 '23 by: Varsha1285
pls i write a code in java and also in c# and want to put them into my framework(django) pls can i do so
0
1,206
thread by: shebinkk | last post Apr 5 '23 by: shebinkk
Hi everyone, I'm new to Python. My manager wants me to run a Python code and generate output for 40 set of values. The code works fine for sample data. But when I replace it with actual data, it doesn't give me any output. Below is the code. Sample data is given in the code as data = . One set of actual data for which I would like to...
4
21,616
thread by: Tharun03 | last post Mar 29 '23 by: Roman123456789
Hi I don't have much experience on python coding. Can someone give me a answer for this ques. Question: Write a python program that splits a sentence into words. Change the first and last letter of each word into uppercase and display them. For example if we type input as hello,world The output must be: HellO WorlD
4
15,009
thread by: AjayGohil | last post Mar 22 '23 by: Vanisha
what does private cloud mean?
1
13,169
thread by: feuerk | last post Mar 22 '23 by: Vanisha
I dont even know where to start. https://corgis-edu.github.io/corgis/datasets/python/electricity/electricity.py https://corgis-edu.github.io/corgis/datasets/python/electricity/electricity.data import electricity utility = electricity.get_utility() I am having trouble organizing the dataset into a matrix of some sort with the columns :...
2
8,428
thread by: PatrickS | last post Mar 20 '23 by: Vanisha
What are some softwares that use Python, are compatible with databases, and have a GUI Designer. Yes, I know that you can use Python to connect to databases and you can create GUIs with Python but I've only found one software that offers all this. Plus, I need a GUI Designer, I think they save lots of time and are more useful than people say. So...
3
9,933
thread by: Dolfinwu | last post Mar 17 '23 by: Vanisha
I am trying to get the position of a string inside a list in Python? How should I do it? For example, when a user provides a sentence "Hello my name is Dolfinwu", I turn the entire sentence into a list beforehand, and I want to get the positions of each "o" right here, how can I do it? In this case, the position of the first "o" is "4", and the...
0
1,143
thread by: CMLab | last post Mar 15 '23 by: CMLab
https://github.com/libAudioFlux/audioFlux AudioFlux is a library for audio and music analysis and feature extraction, which supports dozens of time-frequency analysis and transformation methods, as well as hundreds of corresponding time-domain and frequency-domain feature combinations, which can be provided to the deep learning network for...
0
398
thread by: CMLab | last post Mar 15 '23 by: CMLab
https://github.com/libAudioFlux/audioFlux AudioFlux is a library for audio and music analysis and feature extraction, which supports dozens of time-frequency analysis and transformation methods, as well as hundreds of corresponding time-domain and frequency-domain feature combinations, which can be provided to the deep learning network for...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.