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,941
» Latest member: Noya_Yonatan
» Forum threads: 38,722
» Forum posts: 175,510

Full Statistics

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

Latest Threads
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: bowlofred
54 minutes ago
» Replies: 2
» Views: 132
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 04:28 PM
» Replies: 11
» Views: 4,372
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 797
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,652
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,145
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,657
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,472
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,661
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,587
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,764

 
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

  Concatenate str
Posted by: JohnnyCoffee - Apr-30-2021, 06:45 AM - Forum: General Coding Help - Replies (2)

I have a main class that returns the result of a secondary class. The problem is defined in the following message in the terminal:

TypeError: can o..... More

Print this item

  Need help with lxml.html and xpath
Posted by: spacedog - Apr-29-2021, 10:58 PM - Forum: General Coding Help - Replies (5)

I was using scrapy to create the needed xpath for a lot of elements to scrape. Now that we're using multithreading I moved off of scrapy and just usi..... More

Print this item

  Create buttons as many as there is data
Posted by: nestor - Apr-29-2021, 07:59 PM - Forum: GUI - No Replies

Hi, with this code I create a graphical interface with a button
[python]from kivymd.app import MDApp
from kivy.lang import Builder

KV = """
Scre..... More

Print this item

  Python OpenCV window not opening in fullscreen mode
Posted by: Zman350x - Apr-29-2021, 07:54 PM - Forum: General Coding Help - No Replies

I have some basic code to receive a camera stream as a numpy array and display it as a fullscreen window. I'm able to receive and display the camera, ..... More

Print this item

  Pausing and returning to function?
Posted by: wallgraffiti - Apr-29-2021, 05:08 PM - Forum: General Coding Help - Replies (1)

The basic idea I have is something like this, but with actual python builtins:
[python]
def somefunc():
print('Something')
pause
prin..... More

Print this item

  Help with CV2 pytesseract detcet numbers
Posted by: korenron - Apr-29-2021, 12:56 PM - Forum: General Coding Help - No Replies

hello ,
I want to run a code that detect numbers
I took very simple test case ,
use windows paint to write "12 345 67" in black , font 100 and ..... More

Print this item

  help on random methods
Posted by: jip31 - Apr-29-2021, 11:09 AM - Forum: General Coding Help - Replies (2)

Hi

I use the randint method which works fine

[python]
>>> import random
>>>
>>> def rand():
for i in range(6):
print(r..... More

Print this item

  Beginner question - Terminal
Posted by: Alex121 - Apr-29-2021, 10:43 AM - Forum: News and Discussions - Replies (8)

I downloaded the latest version of python on my Mac, and went to Terminal to check if everything's working.
When I type "python --version" I get the..... More

Print this item

  How to multiply tuple values in array?
Posted by: EngiPorem - Apr-29-2021, 09:36 AM - Forum: Homework - Replies (3)

Hi guys. I have stumbled on a issue where I can't multiply the elements in a tuple. Lets say we have [(x1, y1),(x2, y2)], I need the output like this:..... More

Print this item

  help with pytesseract.image_to_string(savedImage, config='--psm 11')iamge to string
Posted by: korenron - Apr-29-2021, 09:36 AM - Forum: General Coding Help - No Replies

i didn;t understand something in the

pytesseract.image_to_string(savedImage, config='--psm 11')
in the config
what does
[pytho..... More

Print this item

  help for use print in REPL
Posted by: jip31 - Apr-29-2021, 09:10 AM - Forum: General Coding Help - Replies (10)

Hi
I try to test this basic code in REPL

a = [1, 2, 3, 4, 5]
for x in range(len(a)):
    print a[x]
I don't succeed to d..... More

Print this item

  help for list printing
Posted by: jip31 - Apr-29-2021, 09:00 AM - Forum: General Coding Help - Replies (8)

Hi
Except if i am mistaken, the function below create an empty list and append random number in this list

[python]
def toto():
jp = []
..... More

Print this item

  tkinter control break a while loop
Posted by: samtal - Apr-29-2021, 08:26 AM - Forum: General Coding Help - No Replies

Hi
I have a basic simple Python 3.5 tkinter program on raspberry pi 3 that runs a stepper motor driven lift.
In the program I have a while loop that..... More

Print this item

  ModuleNotFoundError: No module named 'graph'
Posted by: Anldra12 - Apr-29-2021, 08:14 AM - Forum: General Coding Help - Replies (3)

Quote:Run the code as install to graph but python3.8 have not accept to install library for graph pip install graph what should to do.
[error..... More

Print this item

  Unable to use random.choice(list) in async method
Posted by: spacedog - Apr-29-2021, 06:17 AM - Forum: General Coding Help - Replies (4)

I need to pull a random proxy from a list in an async method but the code exits the method as soon as it hits the line of code:
[python]proxy = rando..... More

Print this item

  SimpleHTTPRequestHandler ( verses ) Files Python Processing
Posted by: JohnnyCoffee - Apr-29-2021, 02:47 AM - Forum: General Coding Help - No Replies

I am using the class (SimpleHTTPRequestHandler) to read directories and files (.html) that work perfectly well and are redenried naturally by the brow..... More

Print this item

  Two separate dataframes, two seperate programs
Posted by: stylingpat - Apr-28-2021, 12:45 PM - Forum: General Coding Help - Replies (2)

Hello, I am trying to get two programs to "talk" to each other. The information will be stored in a Pandas Dataframe. Is it possible to have them talk..... More

Print this item

  What does and do
Posted by: rsherry8 - Apr-28-2021, 11:25 AM - Forum: General Coding Help - Replies (3)

Please consider the following Python expression where a and b have integer values.

a and b

I claim that value of this expression is 0, if a ..... More

Print this item

  Can python open a hyperlink?
Posted by: 1stTimeCoding - Apr-28-2021, 08:14 AM - Forum: General Coding Help - Replies (3)

Hello all,

So I am new to Python and coding in general, and while I am still teaching myself some of the basics I was curious about this question. ..... More

Print this item

  Looking for data/info on a perticular data-proccesing problem.
Posted by: MvGulik - Apr-28-2021, 06:12 AM - Forum: General Coding Help - Replies (9)

Doing some, to me tricky, data processing. And I'm wondering if it might be related to some general (math, logic, science, ...) problem.
And if anyon..... More

Print this item

  Need help multi-threading scraping
Posted by: spacedog - Apr-28-2021, 05:09 AM - Forum: General Coding Help - Replies (2)

Using windows 10 pro, python 3.8.8.

I have a long list of URLs to loop through to scrape. Each URL has up to 100 pages to navigate through.

Thi..... More

Print this item

  dict+dict
Posted by: Skaperen - Apr-28-2021, 12:05 AM - Forum: News and Discussions - Replies (5)

if abc and xyz are dictionaries, i can do abc.update(xyz) and have a combined dictionary as a resul..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Using a For Loop to subtr... 54 minutes ago Anunderling bowlofred General Codin...
  403 Error Yesterday, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 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
Most views
  The best Prog... 576508
  Tutorial Requ... 498406
  Web Scraping ... 440397
  Newbie with P... 384293
  New Users Int... 367423
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+ 12087
buran 8175
snippsat 7368
deanhystad 6892
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 6
buran 3
Newest members
Noya_Yonatan Today
Saipython555 Today
Anunderling Today
Monir Today
atylerfraces2254 Yesterday

User Panel Messages

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