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,395
» Latest member: cruisesfares
» Forum threads: 38,823
» Forum posts: 176,026

Full Statistics

Online Users
There are currently 33 online users.
» 0 Member(s) | 29 Guest(s)
Bing, AOL, Mojeek

Latest Threads
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:11 AM
» Replies: 1
» Views: 88
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,594
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 187
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,603
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 161
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 308
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,114
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,971
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 186
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 117

 
  Trying to understand how isinstance(values, collections.Iterable) work.
Posted by: quazirfan - Aug-09-2021, 07:26 PM - Forum: General Coding Help - Replies (7)

A text book is demonstrating how the built in sum function can be implemented with error checking. Here are the first 2 lines,

[code]
def sum(values)..... More

Print this item

  Flask web app on Azure help
Posted by: dangermaus33 - Aug-09-2021, 06:59 PM - Forum: Web Scraping & Web Development - Replies (2)

I created a simple app that has a client part that accesses (uses requests library) another app (web app) using Flask library to get data. Everything ..... More

Print this item

  Tk window not displaying until loop has completed
Posted by: Ganga - Aug-09-2021, 03:57 PM - Forum: GUI - Replies (8)

Hi, I'm new to python and Tkinter (as in two days in!), so appreciate this may be a pretty obvious mistake I'm making. Why is it that if I have a loop..... More

Print this item

  How to write in text file - indented block
Posted by: Joni_Engr - Aug-09-2021, 11:17 AM - Forum: General Coding Help - Replies (4)

Hi,

I would like to open a text file in the loop and every time I would like to save a new line in the file but I have syntax error of "expected a..... More

Print this item

  Seaborn heatmap intervals
Posted by: ranbarr - Aug-09-2021, 11:04 AM - Forum: Homework - No Replies

Hi all,
Im creating a heatmap using seaborn in python, and I want to set the intervals between the minimum value and maximum value to be 0.05.
right..... More

Print this item

  Label Maker FPDF, Reportlab
Posted by: jamesaarr - Aug-09-2021, 10:16 AM - Forum: General Coding Help - Replies (1)

Hello all, me again,

Basically my entire program is below and I'm looking for a way to change the layout of the generated pdf (Either using FPDF or..... More

Print this item

  correctly indexing ffts, and plotting the results in imshow
Posted by: jms547 - Aug-09-2021, 09:59 AM - Forum: Data Science - No Replies

I am confused about the correct ordering of indices after taking an fft down the columns of a matrix.

If I have 2D data in the matrix psi_hat_kxt a..... More

Print this item

  write new function or change the old one to work "smartter?
Posted by: korenron - Aug-09-2021, 09:14 AM - Forum: General Coding Help - Replies (3)

Hello,
I have created a code that update data into my DB according to my inputs

[python]def MainPage():
ID= input('What is the ID?\n\r')
..... More

Print this item

  Dictionary within html code
Posted by: ebolisa - Aug-09-2021, 09:01 AM - Forum: General Coding Help - Replies (4)

Hi,

I'd like to list all the visitors who have viewed my Facebook page. For that I use CTR-U to get to my page's HTML code and CTR-F to search for ..... More

Print this item

  Psycopg2 doesn't work with python2
Posted by: MedianykEugene - Aug-09-2021, 08:23 AM - Forum: General Coding Help - Replies (3)

Recentley i installed psycopg2 2.9 version and tried to connect it with python2.7 but nothing doesn't work ,my VS Code sends me an error:Import "psyco..... More

Print this item

Photo How can I use 2 digits format for all the number?
Posted by: plumberpy - Aug-09-2021, 07:46 AM - Forum: General Coding Help - Replies (6)

How can I fix all the numbers to 2 digits format so that the numbers will be all aligned column wise in the rows below?

Thanks.
   

Print this item

  How to install "pip install pyserial"
Posted by: Joni_Engr - Aug-09-2021, 07:31 AM - Forum: General Coding Help - Replies (2)

Hi, I get an error when I run 'pip install pyserial'.

"ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied..... More

Print this item

  Architecture question for website with python crontab script
Posted by: rockie12us - Aug-09-2021, 01:40 AM - Forum: General Coding Help - Replies (1)

Hi
I have a wordpress website that I have crontab run a python script once an hour that looks through a database for events to do.

Is there a libr..... More

Print this item

  PsInfo from remote computer in python
Posted by: susja - Aug-09-2021, 12:30 AM - Forum: General Coding Help - Replies (3)

I need to get output from PsInfo.exe on remote computer. I am located on vhabosapp4gen but need to get information about vhabosdev25 From command line..... More

Print this item

Sad SyntaxError 0x0f=""
Posted by: Aisukurimubokkus - Aug-09-2021, 12:26 AM - Forum: General Coding Help - Replies (2)

Hello people,

I have a problem and I have no idea what's wrong.

I found this tutorial (http://www.rpiblog.com/2012/07/interfaci...2-lcd-with-..... More


Attached Files

Thumbnail(s)
   

.py   pylcdlib.py (Size: 3.23 KB / Downloads: 363)
.py   test_lcd.py (Size: 176 bytes / Downloads: 409)
Print this item

  interfacing C with Python
Posted by: Skaperen - Aug-09-2021, 12:25 AM - Forum: News and Discussions - Replies (2)

starting to read up on interfacing C with Python. the first impression i get is that a lot of effort is being made to make Python bend down to the wa..... More

Print this item

  help my python thinks -10 > -1
Posted by: CRONighttrain - Aug-08-2021, 09:56 PM - Forum: General Coding Help - Replies (1)

the for loop is suppose to sort through the list x2 and then put anything that's lower than the value of the number at j on the list x3 at an index on..... More


Attached Files

Thumbnail(s)
   
Print this item

  text edition in Text
Posted by: crook79 - Aug-08-2021, 07:26 PM - Forum: GUI - Replies (1)

Hello
At the beginning I want show you what I want achieve.
I using tkinter: 2 text field and 1 button:
in the first text field I enter:
one
two..... More

Print this item

  Important changes in Python since 3.6?
Posted by: j.crater - Aug-08-2021, 06:36 PM - Forum: News and Discussions - No Replies

Hello,

I am trying to get back on track with Python. Last version I used was 3.7, without really getting into new features and changes.
Can you pleas..... More

Print this item

  random.choice HELP
Posted by: samuelbachorik - Aug-08-2021, 10:51 AM - Forum: General Coding Help - Replies (4)

Hi iam using random.choice and i want to ask you, how to know what element of array was choosen ?
example code

I need to store in variable what el..... More

Print this item

Question Deploy Flask apps on Windows...
Posted by: SpongeB0B - Aug-08-2021, 07:06 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi everyone,

I created a small Flask application. Thanks to this community btw !

It work really well in local. But now I wou..... More

Print this item

  How to change odd to even numbers in the list?
Posted by: plumberpy - Aug-08-2021, 05:34 AM - Forum: General Coding Help - Replies (8)

Newbie here. Struggling with this simple problem.

x2=[[2,4,6],[1,3,5],[7,8,9]]

Want to change to

x2=[[2,4,6],[2,4,6],[8,8,10]]

A. Change o..... More

Print this item

  It it possible to make a help file explorer with tkinter?
Posted by: Clunk_Head - Aug-07-2021, 05:47 PM - Forum: GUI - No Replies

I've created an interactive guide using tkinter and I'd like to add a helpfileesque navagation pane to it, as similar to this as possible:
[img]https:..... More

Print this item

  Navigating cpython source using python
Posted by: quazirfan - Aug-07-2021, 05:46 PM - Forum: General Coding Help - Replies (3)

I am trying to read python source for some built in function/classes, but sometimes PyCharm is taking me to an autogenerated stub file which makes me ..... More

Print this item

  New to Python - is this possible??
Posted by: MurraySobol - Aug-07-2021, 12:46 PM - Forum: News and Discussions - Replies (1)

I have been assigned a project to change several table and column names; we are moving to Oracle 19 and it allows for table and/or column names to be ..... More

Print this item

  Make my button text update?
Posted by: Skata100 - Aug-07-2021, 05:16 AM - Forum: GUI - Replies (1)

So i have an integer 'bankValue' that is increased by a function 'addToBank'.

The buttons text displays 'bankValue', and should update upon click, ..... More

Print this item

  instagram followers name without suggestion for you
Posted by: jacklee26 - Aug-07-2021, 03:00 AM - Forum: General Coding Help - Replies (1)

I have a question related to using selenium to parse Instagram and get your followers list's name. Please refer to the attached photo.
When I click ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Extracting An Object
Posted by: knight2000 - Aug-07-2021, 01:05 AM - Forum: General Coding Help - Replies (5)

Hi all,

I'm still pretty new to webscraping and in trying to challenge myself with different scenarios, I've come across a scenario where there is ..... More

Print this item

  Gravity doesn't works, and my character just moves right and really fast
Posted by: izmamonke - Aug-07-2021, 12:51 AM - Forum: General Coding Help - Replies (1)

So I could fix my last error thanks to an user, but when I run the game my character just sticks in the air and only can move left when I press rioght..... More

Print this item

  Replace String in multiple text-files [SOLVED]
Posted by: AlphaInc - Aug-06-2021, 10:20 PM - Forum: General Coding Help - Replies (5)

Hello everybody,

In a previous post I got help to find a string in a text-file, replace it with an increasing number and save it:

[python]import..... More

Print this item

  Multilayer Perceptron Neural Network
Posted by: erdemath - Aug-06-2021, 09:28 PM - Forum: Data Science - Replies (3)

I am establishing a multilayer perceptron neural network. Each layer has random number of perceptron. In order to connect perceptrons from
one layer..... More

Print this item

  Replace String with increasing numer [SOLVED]
Posted by: AlphaInc - Aug-06-2021, 08:31 PM - Forum: General Coding Help - Replies (13)

Hello everybody,

I have a text-file with multiple strings which I want to be replaced by an increasing number.
For example there is there the stri..... More

Print this item

  Display table field on multiple lines, 'wordwrap'
Posted by: 3python - Aug-06-2021, 07:57 PM - Forum: General Coding Help - No Replies

Good Day all,

I'm having issues displaying data from a sqlite.db, table>field to inside a text block. It wants to display onto one continuous line...... More

Print this item

  TypeError: run_oracle_job() missing 1 required positional argument: 'connection_strin
Posted by: python_student - Aug-06-2021, 07:37 PM - Forum: General Coding Help - Replies (1)

Hi everyone.
Iam trying to call connection_string method inside run_oracle_job and Im not sure if its better way to do that.
Im getting this error..... More

Print this item

  Pygame with joystick
Posted by: mmagner2022 - Aug-06-2021, 07:34 PM - Forum: General Coding Help - Replies (1)

Hello.
I am new to python and could use some help. I am currently trying to program a simple pong game using pygame and thus far I have used pygame...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Opencv findContours Q Today, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
Most views
  The best Prog... 580422
  Tutorial Requ... 519625
  Web Scraping ... 442785
  Newbie with P... 386990
  New Users Int... 386569
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
cruisesfares Today
azam Today
zcharlesoogleto9533 Today
MaxTranslate Yesterday
pizofreude Yesterday

User Panel Messages

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