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,494
» Latest member: kjhlcd4p6g
» Forum threads: 38,581
» Forum posts: 174,820

Full Statistics

Online Users
There are currently 753 online users.
» 0 Member(s) | 750 Guest(s)
Bing, Google, Yandex

Latest Threads
Les methodes de paiement ...
Forum: General Coding Help
Last Post: Jeffreyhox
23 minutes ago
» Replies: 0
» Views: 24
Secure and Reliable Colou...
Forum: News and Discussions
Last Post: ishani007
2 hours ago
» Replies: 0
» Views: 46
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
Yesterday, 07:49 AM
» Replies: 8
» Views: 21,209
Wish to write a code for ...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 06:08 AM
» Replies: 3
» Views: 578
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
May-20-2025, 12:26 PM
» Replies: 13
» Views: 28,819
problems with netcdf if I...
Forum: General Coding Help
Last Post: vytlacfoto
May-20-2025, 05:31 AM
» Replies: 17
» Views: 1,521
How to attach images to a...
Forum: Board
Last Post: sethmike9
May-19-2025, 04:08 AM
» Replies: 6
» Views: 8,940
How To Attach data Files
Forum: Board
Last Post: sethmike9
May-19-2025, 04:05 AM
» Replies: 3
» Views: 4,188
Text frame
Forum: Homework
Last Post: Pedroski55
May-18-2025, 07:39 PM
» Replies: 2
» Views: 435
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
May-18-2025, 06:28 PM
» Replies: 0
» Views: 229

 
  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: 172)
.py   main.py (Size: 1,007 bytes / Downloads: 242)
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

  Use of pygame
Posted by: ebolisa - Sep-30-2022, 06:22 PM - Forum: General Coding Help - Replies (2)

Hi,

The following code plays only the beginning of a file:

[python]pygame.mixer.init()
pygame.mixer.music.load('my_music.mp3')
pygame.mixer.mu..... More

Print this item

  Pandas groupby warning *** WARNING ***
Posted by: Larz60+ - Sep-30-2022, 04:38 PM - Forum: News and Discussions - No Replies

Please read the following pandas warning:
https://pbpython.com/groupby-warning.html

Print this item

  SQL Alchemy help to extract sql data into csv files
Posted by: mg24 - Sep-30-2022, 12:14 PM - Forum: General Coding Help - Replies (1)

Hi Team,

how to download sql table data with header from using SQL Alchemy.

using pyodbc library I have downloaded 60gb data. Using read in chu..... More

Print this item

  USE string data as a variable NAME
Posted by: rokorps - Sep-30-2022, 08:25 AM - Forum: General Coding Help - Replies (1)

Hello,
I am kinda a beginner in python..
You might say that I have not been 'googling' for this question..
But..
I write code
[python]for ..... More

Print this item

  gspread and installing in general
Posted by: mgallotti - Sep-29-2022, 11:01 PM - Forum: General Coding Help - Replies (2)

Hi,
I'm learning Python, so sorry if this is a dumb question. I did try finding the answer before posting, but I was not successful. I installed gsp..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Les methodes de paiement ... 23 minutes ago Jeffreyhox Jeffreyhox General Codin...
  Secure and Reliable Colou... 2 hours ago ishani007 ishani007 News and Disc...
  Error on import: SyntaxEr... Yesterday, 07:49 kirkwilliams2049 Kiongi General Codin...
  Wish to write a code for ... Yesterday, 06:08 Hasan2025 DeaD_EyE General Codin...
  How can I write formatted... 05-20, 12:26 JohnJSal hanmen9527 General Codin...
  problems with netcdf if I... 05-20, 05:31 Blaubart vytlacfoto General Codin...
  How to attach images to a... 05-19, 04:08 CynthiaMoore sethmike9 Board
  How To Attach data Files 05-19, 04:05 Talch sethmike9 Board
  Text frame 05-18, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... 05-18, 18:28 olips784 olips784 General Codin...
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
Most views
  The best Prog... 566815
  Tutorial Requ... 462534
  Web Scraping ... 431713
  Newbie with P... 369203
  Thread remain... 341335
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12052
buran 8170
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
kjhlcd4p6g Today
Arush Yesterday
ishani007 Yesterday
blueglasses Yesterday
Kiongi Yesterday

User Panel Messages

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