Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 54 online users.
» 0 Member(s) | 44 Guest(s)
Bing, Google, Applebot, Facebook, Google Image, DuckDuckGo

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:56 AM
» Replies: 4
» Views: 133
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 107
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 77
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 122
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,162
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,373
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,570
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 196
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,202
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,454

 
  Help with Dictionary Database
Posted by: Extra - Apr-29-2022, 10:31 PM - Forum: General Coding Help - Replies (3)

Hello,

So I'm working on an inventory system for myself to keep track of the items I have.
I made a template for a database where all the info for..... More

Print this item

  For Loops Driving Me Insane
Posted by: Guybrush3pwood - Apr-29-2022, 07:54 PM - Forum: General Coding Help - Replies (9)

Trying to figure out how for loops work and I'm really struggling.

I'm able to make a program that will let me pick a single piece of candy and te..... More

Print this item

  Excel to SQLite
Posted by: kgall89 - Apr-29-2022, 06:57 PM - Forum: General Coding Help - Replies (1)

Hello,

I am using Python3, PyCharm and DB Browser for SQLite. I am new to this domain and those are what I have learned on so far.

I am collec..... More

Print this item

  Selenium Window Not Closing
Posted by: gw1500se - Apr-29-2022, 05:37 PM - Forum: Web Scraping & Web Development - Replies (4)

I have moved a script from Python 3.8.13 (Windows 7) to Python 3.10.4 (Windows 10) and there seems to be several differences I don't understand. I am ..... More

Print this item

  Quick Question about Dictionaries
Posted by: Extra - Apr-29-2022, 05:14 PM - Forum: General Coding Help - Replies (6)

Hello,

I'm trying to make a simple login page through the terminal and I decided to use a dictionary to store the user's name and password.

As ..... More

Print this item

  Python, Tkinter, & Excel
Posted by: Extra - Apr-29-2022, 03:37 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm looking to build a simple inventory system to keep track of my parts and I was browsing the internet for ideas on how to do it when I fo..... More

Print this item

  Need to fix my brain on classes
Posted by: blackknite - Apr-29-2022, 03:36 PM - Forum: General Coding Help - Replies (2)

I want to do a simple calendar to learn practical use of classes, because I find classes counterintuitive in python and I struggle a lot with it.

m..... More

Print this item

  UnicodeEncodeError: 'ascii' codec can't encode character '\xfd' in position 14: ordin
Posted by: Armandito - Apr-29-2022, 09:07 AM - Forum: General Coding Help - Replies (6)

Hey everyone !

I have a strange problem. I would like to send this line to a waveform generator: 'DATA EMEM,#14?\xfd?\xfd'.

I get this error..... More

Print this item

  make: *** [Makefile:29: all] Segmentation fault
Posted by: Anldra12 - Apr-29-2022, 01:00 AM - Forum: General Coding Help - Replies (2)

By Installing Charm sudo make rturn an error
[error]/usr/local/bin/python3 setup.py build
make: *** [Makefile:29: all] Segmentation fault[..... More

Print this item

  What am I doing wrong?
Posted by: Larz60+ - Apr-28-2022, 11:13 PM - Forum: Web Scraping & Web Development - Replies (2)

I'm trying to wait for browser to see the first part of a string using:
[python]
ltext = f"Page {sw['current_page']}"
eleme..... More

Print this item

  Help to make a shuffleboard scoreboard
Posted by: Slett1 - Apr-28-2022, 05:20 PM - Forum: General Coding Help - Replies (1)

Hello!

Im a totally newbie at this (as you will notice), but i am trying to use a Raspberry Pi and a TV-screen to make a scoreboard for my shuffleb..... More

Print this item

  Reading .csv file
Posted by: doug2019 - Apr-28-2022, 04:59 PM - Forum: General Coding Help - Replies (4)

Hi! Could someone give me a hand? I'm having trouble creating code to read a .csv file in pandas. With .xlsx file I know how to create it. Below i..... More


Attached Files

Thumbnail(s)
       
Print this item

  Efficiency with regard to nested conditionals or and statements
Posted by: Mark17 - Apr-28-2022, 02:01 PM - Forum: General Coding Help - Replies (13)

My backtester program iterates down the rows of a .csv file. In order to backtest a strategy, over 99.5% of the rows correspond to unused options and..... More

Print this item

  Can I check multi condition for 1 item in a easy way?
Posted by: korenron - Apr-28-2022, 01:42 PM - Forum: General Coding Help - Replies (4)

Hello,
I want to check if 1 item apper in 4 lists
right now this is how I do this:
[python]
if item is not None and item is not False and item n..... More

Print this item

  Cannot install TensorFlow 2.2 in Windows 10
Posted by: Led_Zeppelin - Apr-28-2022, 01:41 PM - Forum: General Coding Help - Replies (1)

Can I install TensorFlow 2.2 on Windows 10?

I have tried

pip install TensorFlow==2.2

and

conda install TensorFlow==2.2

and it says tha..... More

Print this item

  How split N days between specified start & end days
Posted by: SriRajesh - Apr-28-2022, 12:26 PM - Forum: General Coding Help - Replies (2)

Hi,
I have start date and end date. I want to split it to N-equal days.
start_date = "2022/04/10 00:00:00"
end_date = "2022/04/14 00:00:00"
I wa..... More

Print this item

  ImportError: /home/ali/Documents/test/charm/core/crypto/AES.cpython-39-x86_64-linux-g
Posted by: Anldra12 - Apr-28-2022, 07:07 AM - Forum: General Coding Help - No Replies

[b][color=#1ABC9C]I am working with charm crypto using python 3.7.1 and I have created a small database as shown in the codes as I run the code gettin..... More

Print this item

  how to add the Qcompleter into a ui-converted script?
Posted by: 53535 - Apr-28-2022, 06:53 AM - Forum: GUI - Replies (8)

[python]
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QApplication,QFileDialog,QCompleter,QLineEdit
import s..... More

Print this item

  Get image from PI camera and analyze it
Posted by: korenron - Apr-28-2022, 06:49 AM - Forum: General Coding Help - No Replies

Hello,
I'm trying to write a code for detecting license plate number ,
until now I took a saved image and did all the testing on it
I want to che..... More

Print this item

  Write to a LCD display using i2c to a Raspberry Pi using i2c 6398 4x20 LCD
Posted by: Aggie64 - Apr-28-2022, 12:49 AM - Forum: General Coding Help - Replies (4)

I have been unable to find out how to write normal ascii data to a LCD display using i2c.
One of the code snippets I have tried is:
Bus=smbus,SMBus..... More

Print this item

  what is wrong. Why python doesn't ad my values ?
Posted by: Bubu93200 - Apr-27-2022, 09:18 PM - Forum: General Coding Help - Replies (8)

Hi,

Sorry for my bad english.

I need your help, please.
Something is wrong in my code and I don't understand what.

[python]
r1 = {'value 1'..... More

Print this item

  Empty output for NLTK function in CGI script
Posted by: stanislav - Apr-27-2022, 04:02 PM - Forum: Networking - Replies (1)

Hi! I use python NLTK library in CGI script to tokenize some text in XAMPP web server. If i simply use:
someamountoftext = "someamountoftext someamou..... More

Print this item

  database decision....
Posted by: DPaul - Apr-27-2022, 03:45 PM - Forum: Bar - Replies (1)

Hello,
I have MariaDB up and running (see previous post), it's Miraculous!
Now, I have a decision to make on how to proceed. I'm afraid it's a lengh..... More

Print this item

  Image processing
Posted by: MNO - Apr-27-2022, 06:34 AM - Forum: Homework - No Replies

Have to find largest file in a partition of an diskimage tried to make a definition for it but doesn't seem to work
[python]def LF_file():
large..... More

Print this item

  Split a number to list and list sum must be number
Posted by: sunny9495 - Apr-27-2022, 05:10 AM - Forum: General Coding Help - Replies (5)

How to split a number to list and list sum must be number

Example :

x = 8
i want to split and make a list with 3 items and the sum of list must..... More

Print this item

  something is wrong with my code
Posted by: 53535 - Apr-27-2022, 04:42 AM - Forum: GUI - Replies (9)

i made a ui , and converted it into code and add two lines , it worked untill i want to use a variable , see the code below :
[python]
from PyQt5 impo..... More

Print this item

  Sort Differences in 2.7 and 3.10 Explained
Posted by: dgrunwal - Apr-26-2022, 10:45 PM - Forum: General Coding Help - Replies (2)

Python coders,

Is there a particular reason/change that causes this sort result between versions? How common is this kind of change in Python? Do..... More

Print this item

  Dictionary from a list failed, help needed
Posted by: leoahum - Apr-26-2022, 08:29 PM - Forum: General Coding Help - Replies (7)

Hi,

I am trying to get a dictionary from a list like ["a", "b", "c", "a", "c"]. The out come is expected to be {"a": [0, 3], "b": [1], "c": [2, 4]}..... More

Print this item

  Waiting for heavy functions question
Posted by: philipbergwerf - Apr-26-2022, 08:09 PM - Forum: General Coding Help - Replies (14)

I have written a program that writes a music score based on a text file with a certain syntax. I use tkinter as gui and draw engine to draw the score ..... More

Print this item

  Matching multiple parts in string
Posted by: fozz - Apr-26-2022, 02:48 PM - Forum: General Coding Help - Replies (31)

What I'm trying is to match a string with a substring, in the substring there are wildcards added, I tryed the next without luck, it is only matching ..... More

Print this item

  Creating a Dataframe from Zenodo zip file with multiple CSVs about Spotify
Posted by: man0s - Apr-26-2022, 01:45 PM - Forum: Data Science - No Replies

I am trying to make a dataframe that combines all the CSVs from a zip with spotify data from zenodo. The zip is the charts.zip from here: https://zeno..... More

Print this item

  Can you print a string variable to printer
Posted by: hammer - Apr-26-2022, 12:20 PM - Forum: General Coding Help - Replies (2)

I can not send a string variable to the printer because it keeps looking for a file. I have printed the string variable out on the terminal window and..... More

Print this item

  Element wise computation
Posted by: divon - Apr-26-2022, 12:20 PM - Forum: General Coding Help - Replies (2)

Hello everyone

Suppose I have two arrays:
[Image: generator-matrix.png]
and
[img]https://i.ibb.co/xzkyZN8/received-me..... More

Print this item

  what is wrong with my code?
Posted by: 53535 - Apr-26-2022, 10:36 AM - Forum: GUI - Replies (11)

[python]
from PyQt5 import QtCore, QtGui, QtWidgets
import sqlite3
from PyQt5.QtWidgets import QMainWindow, QApplication,QFileDialog,QLabel
import os
..... More

Print this item

  AttributeError: 'list' object has no attribute 'upper'
Posted by: Anldra12 - Apr-26-2022, 09:43 AM - Forum: General Coding Help - Replies (4)

Get the AttributeError: 'list' object has no attribute 'upper'
Return this line the keywords 'upper'
[python]def keyg..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... Today, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578711
  Tutorial Requ... 509260
  Web Scraping ... 441853
  Newbie with P... 385807
  New Users Int... 375162
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020