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,236
» Latest member: Cristiano
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 46 online users.
» 1 Member(s) | 41 Guest(s)
Bing, Applebot, Google, Cristiano

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
6 hours ago
» Replies: 3
» Views: 73
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
8 hours ago
» Replies: 3
» Views: 91
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 64
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 97
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,027
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,362
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,550
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 179
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,192
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,437

 
  compare and find the nearest element ?
Posted by: mr_gentle_sausage - Jan-14-2023, 09:32 PM - Forum: General Coding Help - Replies (4)

hello,
I need a little help, I have a list (element has 2 elements(X and Y)), and I need to find, in this list, which element is the nearest of my mo..... More

Print this item

  Where's my .py file?
Posted by: hansemso - Jan-13-2023, 10:40 PM - Forum: General Coding Help - Replies (1)

Hi. Newbie here. I installed pycharm, got the sympy extension. I made a file called "Newton's_Method_2" and put it in a pythonProject1 folder I mad..... More

Print this item

  Question about Creating an Automated Process in Python
Posted by: Supratik1234 - Jan-13-2023, 08:29 PM - Forum: General Coding Help - No Replies

Hi everyone, I am very new to Python so I don't know a lot about coding whatsoever but I am a part of a research group involved in ab initio md. For t..... More


Attached Files

.py   OHNWCHEM.py (Size: 1.49 KB / Downloads: 231)
Print this item

  self.pos().x() and self.pos().x() always return -3,-30 on PyQT5
Posted by: DrakeSoft - Jan-13-2023, 02:31 PM - Forum: GUI - Replies (3)

Hi,

I am using the code below to experiment with window size and psoition.
I notice that irrespective of where I move the window self.pos().x() an..... More

Print this item

  excel lookups
Posted by: Deephect - Jan-13-2023, 12:46 PM - Forum: General Coding Help - No Replies

I have two excel sheets in the same book, each row contains a lookup value from sheet2.
Sheet2 contains lookups and all lookup values, Sheet1 contai..... More

Print this item

  Python SSL web page scraping
Posted by: Vadanane - Jan-13-2023, 09:34 AM - Forum: General Coding Help - Replies (1)

I'm using Python 2.7 with BeautifulSoup to scrape web pages, but I keep running across protocol errors that don't make much sense to me. This only occ..... More

Print this item

  launching executables
Posted by: DPaul - Jan-13-2023, 07:31 AM - Forum: General Coding Help - Replies (6)

Hi,
I have an executable. Users click on it (or an icon) and do research.
One user however starts inadvertently many instances of the exe,
and one ..... More

Print this item

  super lightweight (only 35 lines) dependency injection (ioc) support for Python
Posted by: kenttong - Jan-13-2023, 04:30 AM - Forum: Code sharing - Replies (5)

Hi,

A super simple and risk-free way to do dependency injection (ioc) in Python. The entire code base is only 35 lines (empty lines included). No n..... More

Print this item

  Newbie here. Create an array from file data?
Posted by: Rayj00 - Jan-13-2023, 12:37 AM - Forum: Homework - Replies (2)

I'm brand new with python. I have a file with integers like this:

2 5 8 12 20
3 12 15 18 29
etc,
etc,
etc,
.
.
etc.

I need to get them ..... More

Print this item

  "Name is not defined" when running a class
Posted by: lil_e - Jan-12-2023, 11:10 PM - Forum: General Coding Help - Replies (6)

Hi. I'm a beginner trying to figure out why my code won't work. I'm pretty sure it's a minor detail, but I tried several time, but cannot find out why..... More

Print this item

  Positive integral solutions for Linear Diophantine Equation
Posted by: august - Jan-12-2023, 10:09 PM - Forum: General Coding Help - Replies (4)

Hello All,

Say I want to find all POSITIVE INTEGRAL solutions for a,b for this linear equation:
a + 2b = 5 and the solutions ..... More

Print this item

  [split] Explain the python code in this definition
Posted by: Led_Zeppelin - Jan-12-2023, 09:07 PM - Forum: General Coding Help - Replies (1)

I have a vector of real numbers. They are the feature importance in a machine learning experiment. One importance for each sensor.

Obviously, they ..... More

Print this item

  [split] Explain the python code in this definition
Posted by: Led_Zeppelin - Jan-12-2023, 08:54 PM - Forum: Board - Replies (2)

I am sorry to bother anyone for this, but I am stuck. I have to make a new post. I do not remember how to do it.

I have not used the forum since la..... More

Print this item

  Sprites just randomly appear and dissapear in my pygame.sprite.GoupeSingle
Posted by: trueShadoWrr - Jan-12-2023, 08:28 PM - Forum: Game Development - Replies (2)

I am programming my first "real" game in pygame and now I ran into a Problem.

So I am trying to program the mainmenu of a game and it is already wo..... More

Print this item

  Python VS Code: using print command twice but not getting output from terminal
Posted by: kdx264 - Jan-12-2023, 07:33 PM - Forum: General Coding Help - Replies (4)

Hi, I have autism and am brand new to Python. I am trying to output these two print statements I wrote in my code to see the sum of a, b, and c as wel..... More


Attached Files

Thumbnail(s)
   
Print this item

  C Extension module
Posted by: lamer - Jan-12-2023, 02:41 PM - Forum: General Coding Help - Replies (1)

Hello I wrote simple c extension module and assembled it with visual studio everything works
When i try to assemble it with mingw i am getting issue ..... More

Print this item

  How to work with list
Posted by: kafka_trial - Jan-12-2023, 11:24 AM - Forum: General Coding Help - Replies (8)

Hi all,
I am new to Python. I am doing an application. the application takes 20 names of individuals then prompts user to input out of 20 individual..... More

Print this item

  cannot update PIP
Posted by: tester_V - Jan-12-2023, 04:03 AM - Forum: General Coding Help - Replies (1)

Good evening!
I tried to search the forum for 'failing to upgrade PIP', but found nothing, probably searching in the wrong place...
Got a new work c..... More

Print this item

  How to use the re library to remove irrelevant words?
Posted by: noahe - Jan-11-2023, 10:38 PM - Forum: Homework - Replies (3)

Hi, I'm currently making a python code which includes the creation of a wordcloud. The problem is that there are some words that are irrelevant with t..... More

Print this item

  How to get back a subdirectory in URL with Django
Posted by: jao - Jan-11-2023, 10:28 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello, I'm currently learning Django and i've come up with a difficulty. I have a login app, where the user logs in and registers, their url is localh..... More


Attached Files

Thumbnail(s)
   
Print this item

  First Day using Python. NEED Simple Math CODE HELP!
Posted by: Jesseluke - Jan-11-2023, 08:23 PM - Forum: Homework - Replies (4)

can someone help me with a simple *for yous* lines of code..

I need to input a number of no more then 10 or 11 digits. say 01234567890

then n..... More

Print this item

  x and y must have same first dimension, but have shapes (1,) and (50,)
Posted by: asja2010 - Jan-11-2023, 03:00 PM - Forum: General Coding Help - Replies (5)

Hey there python community, after successfully plotting a graph, when it comes to plotting the frontier of it, I get this message:
[python]ValueError..... More

Print this item

  Using one child class method in another child class
Posted by: garynewport - Jan-11-2023, 12:03 PM - Forum: General Coding Help - Replies (5)

I have two child classes; GraphSelect and GraphCreate.

Both are children of the main, parent, class, [inline]App[..... More

Print this item

  Pyinstaller
Posted by: mksundaram - Jan-11-2023, 10:23 AM - Forum: General Coding Help - Replies (1)

Pyinstaller throws an error: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIBtYb0G/frozendict/VERSION'
[48290] Failed to execute s..... More

Print this item

  Decode string ?
Posted by: JohnnyCoffee - Jan-11-2023, 12:07 AM - Forum: General Coding Help - Replies (1)

Simulating a direct http request in the browser address bar for the module (wsgiref), with the following url:

( OvO ) - Http Request :

[python]..... More

Print this item

  How to use global value or local value
Posted by: sabuzaki - Jan-10-2023, 08:55 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm looking something similar like inheritance from an object (not a class). Example we have code:

[python]
class bridge():
va..... More

Print this item

  PyQt5, QtSql: connection to database does not work
Posted by: gradlon93 - Jan-10-2023, 08:18 PM - Forum: GUI - Replies (4)

Good evening,

I am not sure whether this is the right section, since my question is not about the GUI part of PyQt, but database (QtSql).

I am try..... More


Attached Files

Thumbnail(s)
   
Print this item

  numpy.ufunc - Arguments missunderstand
Posted by: MarioBruza - Jan-10-2023, 07:06 PM - Forum: Data Science - No Replies

Delete a post please. (msg for a moderator).

Print this item

  Kivy 2.2.0 not available. You have 2.1.0, but the application requires 2.2.0)
Posted by: mikepy - Jan-10-2023, 06:10 PM - Forum: GUI - Replies (1)

Hi guys! Has anybody the same problem to install the kivy 2.2.0 update on Ubuntu? I have tried to update the library, but in VS Code the error remains..... More

Print this item

  local varible referenced before assignment
Posted by: SC4R - Jan-10-2023, 05:16 PM - Forum: General Coding Help - Replies (6)

I kept having this error: UnboundLocalError: local variable 'command' referenced before assignment

Does Anybody know how to solve it?

Here is th..... More

Print this item

  .doc (word) readers
Posted by: DPaul - Jan-10-2023, 04:28 PM - Forum: Bar - No Replies

Hi,
This time I came across a massive contingent of legacy .doc files (not .docx)
Unlike .xml files, that you can read easily, with a choice of tools,..... More

Print this item

Thumbs Up Convert an Interger into any base !? [Solved]
Posted by: SpongeB0B - Jan-10-2023, 03:16 PM - Forum: General Coding Help - Replies (8)

Hi everyone,

Converting a ~base number into a Integer (base10) is quite straightfoward ->

int('2JD',27)
[output]1984[/output..... More

Print this item

  Graph is not appearing in correct frame?
Posted by: garynewport - Jan-10-2023, 10:49 AM - Forum: General Coding Help - Replies (2)

I am unsure if this is a Python, (custom)tkinter or matplotlib question; though the common ground is Python.

I am creating an app to display a rang..... More


Attached Files

Thumbnail(s)
   

.py   GraphCreate.py (Size: 5.85 KB / Downloads: 296)
.py   GraphSelect.py (Size: 2.68 KB / Downloads: 228)
.py   main.py (Size: 973 bytes / Downloads: 243)
Print this item

  Need help on how to include single quotes on data of variable string
Posted by: hani_hms - Jan-10-2023, 04:35 AM - Forum: General Coding Help - Replies (5)

I am not unable to figure out why Python cannot include single quotes on to the value of the variable string. I am trying to add single quote on the b..... More

Print this item

  platformer enemy animation
Posted by: Yegor123 - Jan-10-2023, 12:50 AM - Forum: General Coding Help - Replies (4)

Im working on a platformer for my game and im trying to learn how to add animation to enemies i was looking at a tutorial on how to add animation too ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 6 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 8 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 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... 578677
  Tutorial Requ... 509069
  Web Scraping ... 441835
  Newbie with P... 385786
  New Users Int... 375027
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
Cristiano Today
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday

User Panel Messages

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