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,983
» Latest member: bimosora
» Forum threads: 38,734
» Forum posts: 175,572

Full Statistics

Online Users
There are currently 56 online users.
» 1 Member(s) | 45 Guest(s)
Bing, Google, Facebook Dev, Apple, AOL, Mojeek, snippsat

Latest Threads
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
33 minutes ago
» Replies: 1
» Views: 18
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
10 hours ago
» Replies: 5
» Views: 160
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,033
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 446
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,080
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,144
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 819
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,103
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,545
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,134

 
  need help coming up with a code
Posted by: Staph - Jun-21-2019, 10:06 AM - Forum: General Coding Help - No Replies

I am trying to reproduce this method from a paper and then use it for further investigation, however I am struggling to write the code especially from..... More

Print this item

  Splitting lines ang grouping three at once
Posted by: samsonite - Jun-21-2019, 09:43 AM - Forum: General Coding Help - Replies (5)

What I've done, up to now, is successful only for the first group of short.txt database, while my goal is to have some drifts on adjusting iter..... More

Print this item

  PyInstaller and RStudio conflict
Posted by: rowdy - Jun-21-2019, 09:19 AM - Forum: General Coding Help - Replies (2)

I am using pyinstaller to generate an executable.
However, pyinstaller fails to complete, leaving a broken file. It refers to 'usr/lib/rstudio/qt.con..... More

Print this item

  3D engines
Posted by: pfaber11 - Jun-21-2019, 08:34 AM - Forum: Game Development - Replies (6)

Have recently installed ratcave which I hope to use alongside pygame . Haven't really looked at it yet but thought I would see if anybody else had tri..... More

Print this item

  download pdf file from website
Posted by: m_annur2001 - Jun-21-2019, 05:00 AM - Forum: Web Scraping & Web Development - Replies (1)

Dear All,

I am newbie in Python and I keen to learn more and more. Now I am doing master by research and on the stage of data collection. Instead o..... More

Print this item

  Unable to parse xml file
Posted by: avi1990pr - Jun-21-2019, 04:44 AM - Forum: General Coding Help - Replies (1)

Hi All,

Good Day.. I am a beginner to python, so please bear with me.

I am trying to read a XML file and parse it but am getting traceback.
[color=#..... More

Print this item

  finding p's in words of a multi-line text file
Posted by: johneven - Jun-21-2019, 02:13 AM - Forum: Homework - Replies (5)

Here's the assignment given:

Using the file school_prompt.txt, if the character ‘p’ is in a word, then add the word to a list called [i]p_wo..... More

Print this item

  could open() fail w/o an exception?
Posted by: Skaperen - Jun-21-2019, 01:06 AM - Forum: News and Discussions - Replies (6)

is there any known circumstance, situation, or case, in which open() or at least open(some_file_name,'w') could fail wit..... More

Print this item

  Help me make a comment on youtube
Posted by: caarsonr - Jun-20-2019, 10:15 PM - Forum: Web Scraping & Web Development - Replies (14)

[python]# imports
import random
import time
import csv
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

class Commenter..... More

Print this item

  Tkinter GUI freeze
Posted by: petterg - Jun-20-2019, 09:28 PM - Forum: GUI - Replies (4)

Hi,

I'm using python 3.6.7 on Windows

I'm making a Tkinter GUI that will let you upload files to a destination using ftplib.
My problem is that..... More

Print this item

  Simple while loop only works on first attempt
Posted by: jsb83 - Jun-20-2019, 08:47 PM - Forum: General Coding Help - Replies (2)

Hello all

New to python any help much appreciated. When I run the code below if I enter No on the first attempt python prints "PLEASE CAN I HAVE AN..... More

Print this item

  Circle Turtle
Posted by: JoeLamond - Jun-20-2019, 08:17 PM - Forum: Code sharing - No Replies

This program uses python turtle to draw regular polygons with up to 25 sides. Take a look:
[python]
import math
import turtle
import time

def c..... More

Print this item

  Hide Dock Icon for QSystemTrayIcon App
Posted by: AeglosGreeenleaf - Jun-20-2019, 07:21 PM - Forum: GUI - No Replies

I have a Qt program that uses a QSystemTrayIcon. Only the tray icon shows on Windows, but on Mac the generic Python Launcher icon also shows up in the..... More

Print this item

  call func from dict
Posted by: mcmxl22 - Jun-20-2019, 05:56 PM - Forum: General Coding Help - Replies (3)

how do I call functions from a dictionary?
[python]
def foo():
print('foo')

def bar():
print('bar')

foobar = {
'foo': foo,
..... More

Print this item

  takes 21 positional arguments but 24 were given
Posted by: sophsoph - Jun-20-2019, 04:58 PM - Forum: General Coding Help - Replies (5)

I have a positional argument issue. What needs to be changed?

[error]"line 277, in <module>
ld2
TypeError: mapTraverse() takes 21 positional ..... More

Print this item

  print notifcation when enter new directory os.walk()
Posted by: evilcode1 - Jun-20-2019, 03:54 PM - Forum: General Coding Help - Replies (3)

hello all ...
i trying to write a code for show all dirs in my desktop and subdir's ... but i need to new when my loop enter a new directory :

my..... More

Print this item

  Imported csv, column text converted to number but not summing
Posted by: Ecniv - Jun-20-2019, 03:52 PM - Forum: Data Science - Replies (4)

Hi

Obviously did this wrong.

Situation:
CSV text file importing into pandas
Problem, the source has numbers with ., rather than ,. so its been..... More

Print this item

  Graphing three database in one graph Python
Posted by: r_e - Jun-20-2019, 03:23 PM - Forum: General Coding Help - Replies (1)

Hi,

I have three different data from a source. Each one of them has 2 columns. Some of those 3 sources' first columns named the same but each one o..... More

Print this item

  Mysterious Indentation Problem
Posted by: Dakodak - Jun-20-2019, 03:10 PM - Forum: General Coding Help - Replies (11)

Hello !

Spyder tells me i've an indentation problem here, line 4, "unexpected indent" :

[python]def A(i, j, Nz, Nr, dr, dz, dt, he, Bir, Biz) ..... More

Print this item

  Pivot dataframe
Posted by: SriMekala - Jun-20-2019, 02:06 PM - Forum: Data Science - Replies (2)

[python]

2016-06-06 2016-06-07 2016-06-08 2016-06-09 2016-06-10 2016-06-11 2016-06-12
Group1
BHA
..... More

Print this item

  Bitmap wont find file
Posted by: loulou - Jun-20-2019, 12:55 PM - Forum: GUI - Replies (1)

hello, I have recently started to learn and code using wxPython and so far all seems to go well, however whenever I call upon wx.Bitmap() to display e..... More

Print this item

  Paste Special with multiple arguments with Dispatch
Posted by: CaptainCsaba - Jun-20-2019, 12:40 PM - Forum: General Coding Help - Replies (3)

Hi!

I am trying to change some cells in excel with python. There is an error that sometimes occures in column K. Basically the "The number in this ce..... More

Print this item

  selecting from database using sql query by year
Posted by: pgoosen - Jun-20-2019, 11:57 AM - Forum: News and Discussions - Replies (4)

Hi everybody,

I've got a question. I'm creating a query for a SQL database. Here is my query:

StartGesprek looks like '2018-07-11 15:54:40'
qu..... More

Print this item

  Редактировать данные в sqlite3
Posted by: JJ39 - Jun-20-2019, 10:55 AM - Forum: General Coding Help - Replies (4)

Добрый день помогите решить проблему редактирования данных в sqlite3.
Опишу проблему:
Вывожу данные из sql в приложение на python tkinter. Данные т..... More

Print this item

  first k non-prime numbers
Posted by: arycloud - Jun-20-2019, 10:18 AM - Forum: General Coding Help - Replies (11)

I'm working on a code challenge in which we have to return the k non-prime +ve numbers.
The code comes with a locked generator code which is printing..... More

Print this item

  Problem with this script
Posted by: MaxwellCosta - Jun-20-2019, 09:53 AM - Forum: General Coding Help - Replies (5)

Hi,

I have this scipt
[python]from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen('https://en.wikipedia.org/wiki/Pyt..... More

Print this item

  How to adjust time - tkinter
Posted by: Ondrej - Jun-20-2019, 09:39 AM - Forum: GUI - Replies (2)

Hello everbody,

please help me to solve one issue with my tkinter clock. Time is imported from my cpu but sometimes I need to shift few seconds down ..... More

Print this item

  64 Bit - Help
Posted by: Serpent190 - Jun-20-2019, 08:33 AM - Forum: General Coding Help - Replies (1)

Hi there, I am a complete newbie to this and I have a 64 bit laptop and when I try to download the latest Python release it comes up as 32 bit. How an..... More

Print this item

  Sum of elements on the list recursive
Posted by: sev - Jun-20-2019, 08:15 AM - Forum: Homework - Replies (3)

Hi,
my homework is to create a program which sums elements of the list (from current index to the last) and inserts its result to the appropriate cel..... More

Print this item

  Build error (Python 3.7)
Posted by: Saszalez - Jun-20-2019, 07:59 AM - Forum: General Coding Help - No Replies

Hi all.

I'm trying to build Python version 3.7 with the Intel compilers (2018 version). I'm doing it in CentOS 7 with the source code. The steps I ..... More

Print this item

  pandas writing to excel .. help
Posted by: anna - Jun-20-2019, 06:34 AM - Forum: Data Science - No Replies

Hi All,

below is my small script, taking all .csv files in list. taking specific columns in dataframe and writing to excel.

need small help..
..... More

Print this item

  The Matrix
Posted by: mcmxl22 - Jun-20-2019, 05:58 AM - Forum: Code sharing - Replies (7)

The Matrix simulator.

[python]
import random

characters = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
'A', 'Z', '=', '+', '#', ..... More

Print this item

  [In Progress] - Rogue-Like Game Tutorial
Posted by: nilamo - Jun-20-2019, 03:13 AM - Forum: Game Tutorials - Replies (5)

There's a community on Reddit (https://www.reddit.com/r/roguelikedev) which is putting a roguelike game together, a piece at a time, on a weekly basis..... More

Print this item

  four commands i wrote the other day
Posted by: Skaperen - Jun-20-2019, 02:27 AM - Forum: Code sharing - Replies (4)

i wrote these four commands the other day:

wait_for_all_files_to_exist.py:
[python]#!/usr/bin/env python3
from sys import argv
from time import ..... More

Print this item

  Store a python list of lists in a database to use for searches later on
Posted by: klllmmm - Jun-20-2019, 01:28 AM - Forum: General Coding Help - Replies (3)

When I scarp a web page I'm getting data similar to below lists.

[python]MainID = [[1]]
AddrID = [['1'], ['2']]
Address1 = [['Lane 1'], ['..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  create ocr to detect lice... 33 minutes ago bimosora Pedroski55 General Codin...
  Parse Markdown / get the ... 10 hours ago SpongeB0B Pedroski55 General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
Most views
  The best Prog... 577452
  Tutorial Requ... 501135
  Web Scraping ... 441080
  Newbie with P... 385154
  New Users Int... 369775
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
bimosora Today
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday
Joliekeva Yesterday

User Panel Messages

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