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,384
» Latest member: Michaelhauct
» Forum threads: 38,820
» Forum posts: 176,012

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 34 Guest(s)
Bing, AOL, Mojeek, Google, Google Image

Latest Threads
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 5
» Views: 9,855
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
4 hours ago
» Replies: 4
» Views: 108
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 127
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 70
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 122
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,285
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 93
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 750
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 159
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Dec-21-2025, 07:43 AM
» Replies: 1
» Views: 137

 
  prefix ID Number with 0,00 make 3 digit.
Posted by: mg24 - Oct-06-2022, 05:39 AM - Forum: General Coding Help - Replies (1)

Hi Team,

Need help for converting all ID no into minimum 3 digit. pythonic way.

Check the id no, if id is single digit, add two zeros infront of..... More

Print this item

  how to convert tuple value into string
Posted by: mg24 - Oct-05-2022, 11:58 PM - Forum: General Coding Help - Replies (2)

Hi Team,

how to convert tuple value into a string.
after running sql query I get output in tuple.

want to convert it into string.

[python]sq..... More

Print this item

  502 Issue
Posted by: itgavin - Oct-05-2022, 10:59 PM - Forum: Web Scraping & Web Development - Replies (1)

Our company internal portal is running Python 3+Nginx+flask+Gunicorn on Ubuntu server. This portal was written by previous staff and I have just joine..... More

Print this item

  QActions and Unicode glyphs
Posted by: malonn - Oct-05-2022, 12:38 PM - Forum: GUI - Replies (9)

I'm trying to add Unicode glyphs to a QAction. But, my attempts thus far are crashing my desktop (actually logging me out). How do I use Unicode cha..... More

Print this item

  QGridLayout and stretching widgets when maximized
Posted by: malonn - Oct-05-2022, 08:23 AM - Forum: GUI - Replies (1)

I have a QGridLayout set with 2 rows and 2 columns. Column 0 spans 2 rows, column 1 has a QTableView in row 0 and a image (QLabel) in row 1. When I ..... More

Print this item

  Tips on Converting BASIC to Pygame
Posted by: robin73 - Oct-05-2022, 08:03 AM - Forum: Game Development - Replies (4)

I posted on Stack Overflow about wanting some feedback/advice on converting old ZX Basic games to Pygame. I'd like to get some input on it, but so far..... More

Print this item

  Add\insert header row existing csv files
Posted by: mg24 - Oct-05-2022, 06:11 AM - Forum: General Coding Help - No Replies

Hi Team,

I am opening existing csv files, and Want to insert records at first row.

if I use inplace=True , file get overwrites
if I use inplac..... More

Print this item

  Moving data from one Excel to another and finding maximum profit
Posted by: azizrasul - Oct-04-2022, 09:48 PM - Forum: General Coding Help - Replies (7)

I have the following code: -

[python]import pandas as pd

out = pd.read_excel(io = "E:/Folder/Company Financials.xlsx", sheet_name = "Sales", use..... More

Print this item

  What do you do outside of work?
Posted by: Jan_97 - Oct-04-2022, 07:13 PM - Forum: Bar - Replies (4)

Outside of work and all things related to tech. What do you enjoy doing?


Me personally I love exercising and hiking. It helps me relax after a lo..... More

Print this item

  Shapes over video in tkinter
Posted by: finndude - Oct-04-2022, 05:49 PM - Forum: General Coding Help - Replies (1)

Hi all,

I wanted to know if there is a way in Tkinter to simply play a video and with a button press, a circle appears on top of the video?

Print this item

  Tetris inteligence
Posted by: DanTDRG - Oct-04-2022, 05:24 PM - Forum: Game Development - Replies (5)

Hello, could someone help me write tetris intelligence?
I understand that there is a lot of it on the internet but unfortunately I can't edit it exce..... More

Print this item

  How to break out of a for loop on button press?
Posted by: philipbergwerf - Oct-04-2022, 03:59 PM - Forum: General Coding Help - Replies (6)

[python]from tkinter import *

# root
root = Tk()
root.title('SeqTank')
scrwidth = root.winfo_screenwidth()
scrheight = root.winfo_screenheight(..... More

Print this item

  PyMuPDF
Posted by: rob101 - Oct-04-2022, 01:11 PM - Forum: General Coding Help - No Replies

Has anyone had any experience (good or bad) using PyMuPDF?

I've not tried it yet, but I can foresee a situation whereby it would be ideal to be a..... More

Print this item

  Insert header at first row, for existing csv
Posted by: mg24 - Oct-04-2022, 11:36 AM - Forum: General Coding Help - Replies (2)

Hi Team,

I have input data in csv file like below.

1,EAST,100
2,WEST,200
3,SOUTH,300
4,NORTH,400


I want to add these headers to above in..... More

Print this item

  How do I make a game save?
Posted by: BliepMonster - Oct-04-2022, 10:49 AM - Forum: General Coding Help - Replies (6)

Hello,
I am making a game with python and the content is expanding really fast. It's beginning to reach the point that it can't be played in one sitt..... More

Print this item

  How to call a function in Python 3
Posted by: bmharwani - Oct-04-2022, 07:45 AM - Forum: Tutorial Requests and Submissions - No Replies

This video tutorial explains how to call a function in python 3 and understand advantage of using function and the syntax of def and return function i..... More

Print this item

  counting lines in split data
Posted by: Skaperen - Oct-03-2022, 10:16 PM - Forum: General Coding Help - Replies (6)

i am getting data in an ordered sequence of buffers one at a time. an example is reading a data pipe 4096 bytes at a time. i want to count the numbe..... More

Print this item

  TypeError: sequence of byte string values expected, value of type str found
Posted by: witgrefe - Oct-03-2022, 01:38 PM - Forum: Tutorial Requests and Submissions - No Replies

I am trying to get mod_wsgi up and running but when I try to open a test page with the following code I get the error saying that a byte string is exp..... More

Print this item

  python Extract sql data by combining below code.
Posted by: mg24 - Oct-03-2022, 09:02 AM - Forum: General Coding Help - Replies (1)

Hi Team,

How to combine below two code both code works, I want sql data using SCP Method.
SCP method is faster to extract data. SCP method does n..... More

Print this item

  Using locationtagger to extract locations found in a specific country/region
Posted by: lord_of_cinder - Oct-03-2022, 06:52 AM - Forum: General Coding Help - Replies (1)

I have found locationtagger as a python based tool which can help me extract locations from a piece of text. My problem is the locations to be ..... More

Print this item

  Develop neural network for consumption function
Posted by: vaibhavpwr101 - Oct-03-2022, 05:29 AM - Forum: Homework - No Replies

I am new to python and I do not no how to approach to this problem. please suggest me how to do it. Its really important for me


The consumption f..... More

Print this item

  [Solved]How to Run GUI MsgBox From Terminal Properly
Posted by: Extra - Oct-02-2022, 08:09 PM - Forum: GUI - Replies (4)

Hello,

I'm trying to make an alert GUI that pops up/activates after a certain amount of time or when it's called by my program.

Right now I'm tr..... More

Print this item

  Making a function more efficient
Posted by: CatorCanulis - Oct-02-2022, 07:24 AM - Forum: General Coding Help - Replies (9)

Hi everyone,

I'm working on a function that avoids transposed numbers. Like if you have 12 you can't have 21 or if you have 126 you can't have 216 ..... More

Print this item

  re.sub not working
Posted by: Ryokousha - Oct-02-2022, 04:18 AM - Forum: General Coding Help - Replies (7)

I have a simple mad libs genarator and template text. when I try to replace part of speech it's just do noting and return unchanged string. I don't kn..... More


Attached Files

.txt   The Monkey King!.txt (Size: 389 bytes / Downloads: 206)
.py   main.py (Size: 1,007 bytes / Downloads: 301)
Print this item

  Changing the initial worksheet name in an MS Excel file
Posted by: azizrasul - Oct-02-2022, 03:11 AM - Forum: General Coding Help - Replies (3)

In the following code I want the initial sheet name to change from 'Sheet' to some other name. What code can I use to do this. Is there a way of makin..... More

Print this item

  [Solved]Add a Blank Row To QTableView
Posted by: Extra - Oct-01-2022, 10:11 PM - Forum: GUI - Replies (3)

Hello,

I have a GUI that displays some tables and I have an "Add Item" button that, when clicked, I would like it to add a new (blank) row to the t..... More

Print this item

  how is Ellipsis or ... used?
Posted by: Skaperen - Oct-01-2022, 06:58 PM - Forum: News and Discussions - Replies (9)

how is Ellipsis or ... used in Python code? has anyone here had a need to use it? has anyone here ever seen it used in code not in a comment?

[py..... More

Print this item

  while loop
Posted by: idddj - Oct-01-2022, 08:22 AM - Forum: Homework - Replies (8)

So I was required to solve this question:[i] Write a program to use a while loop to read the numbers from the user repeatedly until he/she inputs 0. T..... More

Print this item

  Csv writer meaning of quoting
Posted by: mg24 - Oct-01-2022, 02:15 AM - Forum: General Coding Help - Replies (2)

Hi Team,

in below code I want understand what quoting does.

What is the meaning of these, in which situation others to use it.

csv.QUOTE_NONN..... More

Print this item

  updating Google spreadsheet with gspread
Posted by: mgallotti - Sep-30-2022, 10:53 PM - Forum: General Coding Help - No Replies

Hello,
I've been working on updating a spreadsheet in Google drive. I'm trying to use gspread to do this. I've been able to find the spreadsheet by..... More

Print this item

  iterating and detecting the last
Posted by: Skaperen - Sep-30-2022, 10:38 PM - Forum: General Coding Help - Replies (3)

i am iterating over a list (or tuple). for each item except the last item i need to do a specific thing. for the last item i need to do something di..... More

Print this item

  Why doesn't it show me anything in print?
Posted by: Melcu54 - Sep-30-2022, 08:35 PM - Forum: General Coding Help - Replies (2)

Why doesn't it show me anything in print?

[python]import re
import html
from urllib import parse
import requests

GOOGLE_TRANSLATE_URL = 'http..... More

Print this item

  Creating list of lists, with objects from lists
Posted by: sgrinderud - Sep-30-2022, 08:04 PM - Forum: General Coding Help - Replies (7)

Hi,
I have two lists like this:

List1 = ['1','2','3','5']
list2 = ['a','b','c','d','e']
and im trying to combine them into..... More

Print this item

  Create SQL connection function and validate
Posted by: mg24 - Sep-30-2022, 07:10 PM - Forum: General Coding Help - Replies (1)

Hi Team,

how to create a sql connection function , and validate if it is successfully connected it or not.
I attempted with below code. code works..... More

Print this item

  My survival game
Posted by: BliepMonster - Sep-30-2022, 06:56 PM - Forum: Code Review - No Replies

So I've been coding for a few weeks and made this text survival game. Can someone give a review or tell how I could change my code?

(The game is in..... More


Attached Files

.py   survival spel 1.5 klad.py (Size: 36.45 KB / Downloads: 8)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Lottery generator (beginn... 2 hours ago Hullari Pedroski55 General Codin...
  Calling python from anoth... 4 hours ago eedjsa bowlofred 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 ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
  Spaces in string 12-19, 13:04 Mallard Mallard General Codin...
Most views
  The best Prog... 580331
  Tutorial Requ... 518821
  Web Scraping ... 442755
  Newbie with P... 386941
  New Users Int... 386039
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
Michaelhauct Yesterday
eedjsa Yesterday
byanfrances6176 Yesterday
Amowtonyl Yesterday
sofiadavis1840 Yesterday

User Panel Messages

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