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,938
» Latest member: atylerfraces2254
» Forum threads: 38,722
» Forum posts: 175,511

Full Statistics

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

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
2 hours ago
» Replies: 11
» Views: 3,905
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Yesterday, 07:55 PM
» Replies: 2
» Views: 433
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,428
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 791
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,260
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,136
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,355
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,341
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,465
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,024

 
  Tuple generator, and function/class syntax
Posted by: quazirfan - Aug-10-2021, 01:32 AM - Forum: General Coding Help - Replies (3)

Question 1: I know that I can generate a list of some numbers using list comprehension. And the same syntax works with set. This is not a lazy ..... More

Print this item

  what am i doing wrong???
Posted by: Himmank - Aug-09-2021, 07:36 PM - Forum: Homework - Replies (2)

Q. Lottery Analysis: You can use a loop to see how hard it might be to win the kind of lottery you just modeled. Make a list or tuple called my_ticket..... More

Print this item

  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: 356)
.py   test_lcd.py (Size: 176 bytes / Downloads: 394)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error 2 hours ago CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... Yesterday, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 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
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576332
  Tutorial Requ... 498068
  Web Scraping ... 440243
  Newbie with P... 384097
  New Users Int... 366993
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+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
atylerfraces2254 Today
AdrianCocian Today
humanoidAI Today
Baran12332 Yesterday
Hershien Yesterday

User Panel Messages

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