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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,935
» Latest member: Lucassewall
» Forum threads: 38,722
» Forum posts: 175,509

Full Statistics

Online Users
There are currently 66 online users.
» 0 Member(s) | 61 Guest(s)
Applebot, Google, Bing, AOL

Latest Threads
Hire a Hacker to Recover ...
Forum: News and Discussions
Last Post: Lucassewall
8 minutes ago
» Replies: 0
» Views: 1
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
5 hours ago
» Replies: 9
» Views: 2,735
Too much space between gr...
Forum: GUI
Last Post: RonR
Today, 11:22 AM
» Replies: 4
» Views: 1,150
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Today, 10:31 AM
» Replies: 3
» Views: 168
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 517
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,675
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 613
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 191
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,135
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,364

 
  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

  can you please help me with this python code
Posted by: MetsxxFan01 - Apr-26-2022, 06:18 AM - Forum: Web Scraping & Web Development - Replies (2)

[python]import urllib.request
from bs4 import BeautifulSoup

url = "http://py4e-data.dr-chuck.net/known_by_Fikret.html"
html = urllib.request.urlopen(..... More

Print this item

  get out of while loop and stop repeat
Posted by: Frankduc - Apr-25-2022, 11:59 PM - Forum: General Coding Help - Replies (11)

hello,

I am trying to get my function out of the loop and avoid sending multiples emails.


[python]def courriel():
print("intruder!")
..... More

Print this item

  Extract parts of multiple log-files and put it in a dataframe
Posted by: hasiro - Apr-25-2022, 07:07 PM - Forum: General Coding Help - Replies (4)

Hi everyone

As I posted a few weeks ago (https://python-forum.io/thread-36845-[url=https://python-forum.io/thread-37036.html]..... More

Print this item

  problem handling redirection
Posted by: dhdurgee - Apr-25-2022, 05:49 PM - Forum: Networking - Replies (2)

I am attempting to update a python script from 2018 to handle some new cases and have encountered a problem I have been unable to solve.

This scrip..... More

Print this item

  TimeOut a function in a class ?
Posted by: Armandito - Apr-25-2022, 01:06 PM - Forum: General Coding Help - Replies (1)

Hey everyone !

Here is my problem : I have defined a class, where I have defined some functions. In the __init__ of my class I can call some..... More

Print this item

  Need help with my code
Posted by: NeedHelpPython - Apr-25-2022, 12:49 AM - Forum: Homework - Replies (1)

For my summary function, what I want it to complete is to get the student with the most courses completed and the highest average. I am having trouble..... More

Print this item

  Closing logger from other function problem
Posted by: Paqqno - Apr-24-2022, 09:19 PM - Forum: General Coding Help - Replies (1)

I have problem with loggers. One function of my program is initiazing logger in specified directory. Second function is closing this logger in order t..... More

Print this item

  How to insert data in a dataframe?
Posted by: man0s - Apr-24-2022, 06:12 PM - Forum: Data Science - Replies (1)

I want to insert lots of csvs in one dataframe. They are from zenodo and are charts from spotify. The .zip archive has three folders, 2017, 2018, 2019..... More

Print this item

  How to plot 2 graphs in one figure?
Posted by: man0s - Apr-24-2022, 06:06 PM - Forum: Data Science - Replies (1)

The below code returns 2 seperate graphs, how can I combine them in one figure?
[python]
sns.set()
sns.set_context("notebook")
sns.set_style("dark..... More

Print this item

  Resources for printing tabledata-Linux and Windows
Posted by: hammer - Apr-24-2022, 01:17 PM - Forum: General Coding Help - Replies (4)

I apologize for asking a "how to" question but I am a "blank slate" when it comes to printing and what little info I turn up on the subject is complex..... More

Print this item

  magic related field in Django model
Posted by: sonh - Apr-24-2022, 07:46 AM - Forum: General Coding Help - Replies (1)

Hello

I have a Django model class as:

[python]
from django.db import models

class DeliveryUpdate(models.Model):
delivery_id = models.Ch..... More

Print this item

  Insert a multiple constant value after header in csv file using python
Posted by: shantanu97 - Apr-24-2022, 06:41 AM - Forum: General Coding Help - Replies (1)

Is it possible to insert 9 new lines of Constant Value("AA") in a CSV starting from the 2nd row? I need to insert the "AA" at the top 9 rows(after the..... More

Print this item

  Want to shorten the python code
Posted by: shantanu97 - Apr-24-2022, 06:19 AM - Forum: General Coding Help - Replies (3)

My code works fine. However, I would like to shorten my code if there is a shorter way to write this. Does anyone have a solution? I have a lot of rep..... More


Attached Files

.py   Check.py (Size: 116.62 KB / Downloads: 265)
Print this item

  Sequence to sequence AI advice
Posted by: tomharvey - Apr-24-2022, 05:06 AM - Forum: Data Science - No Replies

Hello,

I am looking for a field of AI to explore that will be able to help me generate a sequence of numbers from existing sequences of numbers. F..... More

Print this item

  Creating a TG crypto Bot_ problem when trying to with bot.polling
Posted by: p1ner0 - Apr-24-2022, 04:27 AM - Forum: General Coding Help - Replies (1)

Hi there, I have a problem, I have made a telegram bot, which gets input from telgegram(namely the crypto coin name) and then using the CoinGecko API,..... More

Print this item

  Simple python programs for beginners
Posted by: Talbot9 - Apr-23-2022, 06:33 PM - Forum: Tutorial Requests and Submissions - Replies (1)

Hello

Firstly apologies but I'm a relatively newbie to python and I hsve mastered making a basic digital clock with python and that's about as far ..... More

Print this item

  Error when running a matplot lib example
Posted by: aurelius_nero - Apr-23-2022, 04:41 PM - Forum: General Coding Help - Replies (3)

Hi all,
New forum user here.
When I run this code from the Matplotlib examples, I get the following error:
[error]Traceback (most recent call last..... More

Print this item

  I need help!!!!
Posted by: Nimesh_SDP - Apr-23-2022, 04:00 PM - Forum: Homework - Replies (3)

I need to write a program to acquire, extract and compare the price from these two suppliers, for a given product.

There are two online supermarket..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Hire a Hacker to Recover ... 8 minutes ago Lucassewall Lucassewall News and Disc...
  403 Error 5 hours ago CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Today, 11:22 RonR RonR GUI
  datetime in SQL query. Today, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... Yesterday, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
Most views
  The best Prog... 575942
  Tutorial Requ... 497327
  Web Scraping ... 439915
  Newbie with P... 383652
  New Users Int... 366013
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
Lucassewall Today
alexguemez Today
Shadab Today
Dibbley Today
XenonBlack Yesterday

User Panel Messages

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