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,256
» Latest member: TomTMH
» Forum threads: 38,782
» Forum posts: 175,831

Full Statistics

Online Users
There are currently 59 online users.
» 0 Member(s) | 50 Guest(s)
Bing, Google, Internet Archive, Apple, Facebook

Latest Threads
New to python and coding
Forum: Homework
Last Post: jefsummers
3 hours ago
» Replies: 6
» Views: 169
Please guide me to comple...
Forum: General Coding Help
Last Post: pbkurd
4 hours ago
» Replies: 0
» Views: 35
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 6
» Views: 99
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
11 hours ago
» Replies: 6
» Views: 344
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:26 PM
» Replies: 2
» Views: 105
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 235
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 370
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 141
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,639
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 243

 
  PyAutoGUI issues with detection
Posted by: Bizzy_ - May-03-2021, 01:34 AM - Forum: GUI - No Replies

Hello all,

I'm experiencing issues with the image recognition tool (pyautogui.locateOnScreen('/Users/kd/Desktop/image.png', confidence=0.8)
I have..... More

Print this item

  format the output from a nested dictionary.
Posted by: nostradamus64 - May-02-2021, 10:37 PM - Forum: General Coding Help - Replies (9)

Hello everyone im trying to make my codes output to look like this output,
without any trailing or leading symbols. Any tips on how i can do that?
..... More

Print this item

  Create SQLite columns from a list or tuple?
Posted by: snakes - May-02-2021, 06:17 PM - Forum: General Coding Help - Replies (6)

Is there a way to create a table with column names pulled from a list or tuple?
For example...

[python]cur.execute('CREATE TABLE IF NOT EXISTS Cu..... More

Print this item

  Even number code syntax error
Posted by: MrCeez - May-02-2021, 05:27 PM - Forum: General Coding Help - Replies (1)

I have just began my python journey
I am trying to write a code to check if vaue x y z are even numbers
This is my code
[python]
if x %2 == 0: or ..... More

Print this item

  .get() from generated Entry widgets in tkinter
Posted by: snakes - May-02-2021, 04:19 PM - Forum: GUI - Replies (4)

I've been learning about classes and databases and thought I'd have a go at writing something that uses both features. Its a tkinter notebook that aim..... More

Print this item

  How to multiply a matrix with herself, until the zero matrix results
Posted by: peanutbutterandjelly - May-02-2021, 04:09 PM - Forum: General Coding Help - Replies (3)

Hi there!

I'm not quite sure how to code the following problem:
I have to multiply a given matrix A with herself that often, until the zero matrix..... More

Print this item

  TypeError: int() argument must be a string, a bytes-like object or a number, not 'Non
Posted by: Anldra12 - May-02-2021, 02:38 PM - Forum: General Coding Help - Replies (2)

[quote]Implement cryptographic code return me an error where is the exact error
TypeError: int() argument must be a string, a bytes-like object or a ..... More

Print this item

  error in your SQL syntax
Posted by: Xuli - May-02-2021, 11:58 AM - Forum: General Coding Help - Replies (10)

Hi,

I am wanting to check if a username already exists. If so a message box will be displayed, if not the username and the rest of the field entri..... More

Print this item

Question Stopping a parent function from a nested function?
Posted by: wallgraffiti - May-02-2021, 11:27 AM - Forum: General Coding Help - Replies (1)

Here's an example:
[python]
# I want to stop function parent() from function child().

def parent():
def child():
print('A')
returnpa..... More

Print this item

  Bool Object is not Subscriptable
Posted by: quest - May-02-2021, 10:24 AM - Forum: General Coding Help - Replies (1)

Hello

I want to compare string and bool.
Here is my function:
[python]
def MyFunction(qbt, Pauli):

if qbt.QEO.state[0]=='Bell':
..... More

Print this item

  Pygame Rect Not Responding
Posted by: SomebodyImportant - May-02-2021, 10:20 AM - Forum: General Coding Help - Replies (1)

In my Code I try to move the yellow Rectangles over my Pygame Window but they dont respond. The green and the red rectangle respond to my commands. On..... More

Print this item

  bluestacks instagram follow bot
Posted by: countingclub - May-02-2021, 07:27 AM - Forum: News and Discussions - Replies (2)

I used pyautogui to check rgb value of pixel and would click if its the same rgb of the follow button. I made some key shortcuts on bluestacks and use..... More

Print this item

  Ignoring errors when using robjects.
Posted by: Rav013 - May-02-2021, 12:24 AM - Forum: General Coding Help - Replies (3)

I am trying to download packages for R script via python.


[python]

import rpy2.robjects as robjects

data = robjects.r('if(!require(rma..... More

Print this item

  Did subprocess.Popen() causes main routine to pause stdout?
Posted by: liudr - May-01-2021, 07:16 PM - Forum: General Coding Help - Replies (4)

Here is what I wanted to do:
In nix terminal emulator, run my script.
Call subprocess.Popen() to spawn a number of processes, make sure the stdout p..... More

Print this item

  Escape Single quotation between each content tag
Posted by: usman - May-01-2021, 06:44 PM - Forum: General Coding Help - Replies (3)

Hello All,

I am trying to escape a Quotation between content tag of this string

[python]"[[('name', 'productname_0'), ('type', 'html'),('conten..... More

Print this item

  fpdf orientation not working properly
Posted by: KatMac - May-01-2021, 06:38 PM - Forum: General Coding Help - Replies (1)

Hi

I have a csv file that I converted to a pdf file using fpdf.

If I set the orientation using Code 1 my page is converted into landscape, but t..... More

Print this item

  remove vowels in word with conditional
Posted by: ambrozote - May-01-2021, 05:55 PM - Forum: General Coding Help - Replies (12)

Hello,

I am trying to shorten large strings by applying some rules to it but not being able to figure it out.

Here is the code I have tried so f..... More

Print this item

  fpdf star character issue
Posted by: KatMac - May-01-2021, 04:32 PM - Forum: General Coding Help - Replies (3)

Hello,

I have a database with a number of fields and 1 of the fields is Rating. This field contains the word, One, Two, Three, Four or Five.

Ea..... More

Print this item

  500 internal server error
Posted by: Nitil - May-01-2021, 03:25 PM - Forum: General Coding Help - Replies (1)

I am trying to create a simple webpage following an online instructor.
He is using bootstrap, jQuery, Ajax, MongoDB.
The instructor has no forms/Git..... More

Print this item

  Random walk graph not working
Posted by: igapo1 - May-01-2021, 12:21 PM - Forum: Homework - Replies (1)

I've created a 3D and self-avoiding random walk, based on a dictionary containing only {'A','B','B','A','B','A',......} And made a graph out of it.
..... More

Print this item

  Derivative function
Posted by: Irv1n - May-01-2021, 06:49 AM - Forum: General Coding Help - Replies (1)

[python]
import sympy as sym
def sens_coef(self, U_err, I_sd, I_err, I_dig):
U_err, I_sd, I_err, I_dig = sym.symbols('U_err I_sd I_err I_d..... More

Print this item

  How to collate Multiprocessing-Process results?
Posted by: Robotguy - May-01-2021, 06:42 AM - Forum: Data Science - Replies (1)

Let us consider the following code where I calculate the factorial of 4 really large numbers, saving each output to a separate .txt file (`out_mp_{idx..... More

Print this item

Star Type Error: 'in' object is not callable
Posted by: nman52 - May-01-2021, 03:41 AM - Forum: General Coding Help - Replies (3)

[python]
import statistics as s

class stats:

def mode(self):
self.mode = s.mode(self.value)
return(self.mode)
def..... More

Print this item

  How to convert every even number in a list to odd?
Posted by: Bruizeh - May-01-2021, 02:15 AM - Forum: Homework - Replies (4)

Hey all, one of my revision questions was to create a func that takes a list of integer values as a list, and convert every even number into an odd nu..... More

Print this item

  Python bot for ADB Android SCRCPY
Posted by: Bizzy_ - May-01-2021, 01:11 AM - Forum: General Coding Help - Replies (3)

Hello everyone,

Ive been working on a script to automate certain tasks on various social media/games and retail sites.

Currently I have been wor..... More

Print this item

  class to replace areas of the screen
Posted by: ANGOO - Apr-30-2021, 08:06 PM - Forum: GUI - Replies (4)

Hi! I want to create a class with two parameters: the old area & the new area.
Instruction: destroy the old area and replace it with the new one.
..... More

Print this item

  Where does pip auto install on Win10 with py 3.9.4?
Posted by: Fran_3 - Apr-30-2021, 05:06 PM - Forum: General Coding Help - Replies (4)

Question 1 - I read several places that pip automatically installs with later versions of python... right?

Question 2 - I just installed python 3.9..... More

Print this item

  help needed for a friend! :)
Posted by: Powell123 - Apr-30-2021, 04:07 PM - Forum: Homework - Replies (13)

Hope a programmer can help a friend of mine! who is learning to program, this is was he posted to me if some kind member could take a look!

I've att..... More

Print this item

  Enabling interrupt on Adafruits button/led board
Posted by: Moris526 - Apr-30-2021, 03:29 PM - Forum: General Coding Help - No Replies

Hi all.

Im building a controller for a synth.

I have Adafruit's Neotrellis button/led board (https://learn.adafruit.com/adafruit-neotrellis)
..... More

Print this item

  Re-write BASH script to Python script
Posted by: popi75 - Apr-30-2021, 02:04 PM - Forum: Homework - Replies (5)

Hi Folks,

I got a task to "convert" few codes line from BASH script to Python script , I would like to know how do you suggest to write in Python ?..... More

Print this item

  while loop typical code
Posted by: codefreak - Apr-30-2021, 12:50 PM - Forum: General Coding Help - Replies (2)

Enter a number and then enter an other number add these numbers together and then ask if they want to add another number if they enter y ask them to e..... More

Print this item

  Sort Function: <' not supported between instances of 'float' and 'tuple'
Posted by: quest - Apr-30-2021, 09:18 AM - Forum: General Coding Help - Replies (2)

Hello I have this list:

[output]
[((7.2, <__main__.bit object at 0x7f341d8b8700>), <__main__.port object at 0x7f344082cd00>), ((5.5, <__main__.bit..... More

Print this item

  Python script in Ubuntu core
Posted by: Nithin_Kumar - Apr-30-2021, 08:40 AM - Forum: General Coding Help - Replies (1)

Hi All,

Am not from a Programming background, but i need to test something like below and need your support

We have a Gateway running on Linux U..... More

Print this item

  Need help on extract dynamic table data
Posted by: Dr_Strange - Apr-30-2021, 07:03 AM - Forum: General Coding Help - No Replies

Hi, all

I am trying to extract table data (property lease and sold) from below link:

https://oir.centanet.com/en/transaction/...erang=01%2..... More

Print this item

  help on def in if block
Posted by: jip31 - Apr-30-2021, 06:46 AM - Forum: General Coding Help - Replies (7)

Hi
I dont' understandard why the tirage() def doesnt execute (it works only after else block)
Could you help please??

[python]
import random

..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 3 hours ago lary_p jefsummers Homework
  Please guide me to comple... 4 hours ago pbkurd pbkurd General Codin...
  [solved] re.split issue 4 hours ago paul18fr deanhystad General Codin...
  Backward compatibility qu... 11 hours ago yutaozhou noisefloor News and Disc...
  why is the image not show... Yesterday, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578932
  Tutorial Requ... 510213
  Web Scraping ... 441956
  Newbie with P... 385969
  New Users Int... 376838
Most reputation
buran 581
snippsat 511
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+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
TomTMH Today
pbkurd Today
Gichardaxora Today
cc123 Today
Jessicaadams Today

User Panel Messages

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