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,280
» Latest member: MileHigh303
» Forum threads: 38,791
» Forum posts: 175,869

Full Statistics

Online Users
There are currently 315 online users.
» 0 Member(s) | 311 Guest(s)
Bing, Google, Apple

Latest Threads
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
10 hours ago
» Replies: 0
» Views: 31
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:15 AM
» Replies: 4
» Views: 1,464
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 117
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 47
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,031
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,289
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 330
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 170
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 230
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,125

 
  Deleting a PDF Open on the Server
Posted by: b29vnor - May-08-2020, 05:05 PM - Forum: General Coding Help - Replies (1)

Hello all,

I am writing a script that updates a directory with a folder structure filled with PDFs. We would like to run this script to update the..... More

Print this item

  Strange output
Posted by: kintarowonders - May-08-2020, 04:30 PM - Forum: General Coding Help - Replies (6)

I am writing a method and it outputs unexpected results. It is supposed to break up some strings and create lists from them. Yet the lists don't conta..... More

Print this item

  SMTP problem
Posted by: MajK - May-08-2020, 04:10 PM - Forum: General Coding Help - Replies (6)

Hello, i have programed a smaller program and when i run it in pycharm everything works fine, but when i save this project on desktop and want to run ..... More

Print this item

  I want to solve the following problem
Posted by: srisrinu - May-08-2020, 04:06 PM - Forum: General Coding Help - Replies (4)

[quote]There are N people on a street (numbered 1 through N). For simplicity, we'll view them as points on a line. For each valid i, the position of t..... More

Print this item

  Joining Excel data into existing Excel file
Posted by: RemFreeman - May-08-2020, 04:01 PM - Forum: General Coding Help - No Replies

Hi there,

I'm coming back to Python after quite a bit of time away, and I'm facing an issue in trying to bring data from Excel file into another. ..... More

Print this item

  cannot build python 3.8.2 (make test fails on test_imprtlib)
Posted by: borabora - May-08-2020, 03:30 PM - Forum: General Coding Help - Replies (1)

i downloaded python 3.8.2

https://www.python.org/downloads/

in the read me file it says :
[spoiler]Bui..... More

Print this item

  Cancelling 'open directory' leading to crash
Posted by: Fairbz_ - May-08-2020, 01:59 PM - Forum: General Coding Help - Replies (1)

Hi there,

So I'm pretty new to Python coding, I have old code here that isn't very robust when it comes to extreme user inputs. I'm trying to fix t..... More

Print this item

  self function problem
Posted by: Agusben - May-08-2020, 12:35 PM - Forum: General Coding Help - Replies (6)

I have a problem with a program that uses a button that is created in a self function.

[python]
from tkinter import *
from tkinter import ttk
i..... More

Print this item

  struggling w/ fonctions in Python
Posted by: Tiril123 - May-08-2020, 12:23 PM - Forum: Homework - Replies (7)

Hello, I have several Python exercises to do in homework. I find some of them impossible to do, I hope you can help me:
"You must write a function c..... More

Print this item

  Finding Max and Min Values Associated with Unique Identifiers in Python
Posted by: ubk046 - May-08-2020, 11:47 AM - Forum: General Coding Help - Replies (1)

I need help to edit my Python code below - to search the ID column and then give the max and min values for each ID and write them into 2 new columns...... More

Print this item

  Scraping a Website (HELP)
Posted by: LearnPython2 - May-08-2020, 10:09 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi, I need to scrape out all the links on a website.

I want to crawl something like Screaming Frog but with Python.

This is my code:

[pyth..... More

Print this item

  Doubt in Linear Reg by 'MLE' method
Posted by: kumarants - May-08-2020, 09:34 AM - Forum: Data Science - Replies (2)

[python]
import numpy as np
from scipy.optimize import minimize
import matplotlib.pyplot as plt
def lik(parameters):
m=parameters[0]
b=p..... More

Print this item

  struggling with one part of python
Posted by: Lucifer - May-08-2020, 09:13 AM - Forum: Homework - Replies (23)

Hello,

i am struggling to finish the last bit of my script, its for an assessment. I am terrible at scripting unless its for security or penetration...... More

Print this item

  pip upgrade error
Posted by: most197 - May-08-2020, 08:36 AM - Forum: General Coding Help - Replies (4)

I tried to upgrade pip by 'python -m pip install --upgrade pip' but there is an error:

Traceback (most recent call last):
File "C:\Users\most1\A..... More

Print this item

  Python to interact with the Linux Command Line - Centos/RHEL
Posted by: redhat_boy - May-08-2020, 08:01 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

This is part of my project. If I have a Python script ready to work on CLI as menu-driven to perform certain System Administration tasks on a L..... More

Print this item

  PySerial delay
Posted by: mikeybg - May-08-2020, 06:44 AM - Forum: Networking - Replies (1)

Geeting! I stumbled across this forum in search of help so hopefully someone here has the magic answer.
I have a python script that pulls JSON data,..... More

Print this item

  crack the safe - Gangster Nation
Posted by: asiaphone12 - May-08-2020, 06:40 AM - Forum: Code sharing - Replies (8)

hello, I play a game called "Gangster Nation", where the game is like creating mafia community. there is one feature that made me interested, that is ..... More

Print this item

  Help with expression
Posted by: ajay_askoolum - May-08-2020, 05:49 AM - Forum: General Coding Help - Replies (1)

I have never coded Python, came across a code snippet that I'd like to port to C#. I need to understand this expression,
[python]r-C(n-cs,k-s)>0:[/py..... More

Print this item

  len() function, numbers doesn't work with Geany Editor
Posted by: Penguin827 - May-08-2020, 02:42 AM - Forum: General Coding Help - Replies (3)

HI all,


i am a beginner and study python via Geany.
I encounter the below issues.
when i input the code in Geany and run the program,the geany ..... More

Print this item

  Returning always the last image into Label
Posted by: Lucas_Ribeiro - May-08-2020, 02:35 AM - Forum: GUI - Replies (1)

I'm making a web scrapping on a website for a private game server using Python. In a part of this website prints the result of the last nation war win..... More

Print this item

  python if command for a list
Posted by: fid - May-07-2020, 11:31 PM - Forum: General Coding Help - Replies (3)

Hi,

Please check the following code.
[python]
number = 20000

lst = [0,12500,50000,150000]

lst.append(number)
lst.sort()

for b in lst:
..... More

Print this item

  wierd output syntax for variables
Posted by: Zirizo - May-07-2020, 10:07 PM - Forum: General Coding Help - Replies (7)

I feel as if I'm doing the code correctly and it comes out with an outcome but the outcome for the print function is being weird (I'm using Visual Stu..... More

Print this item

  F-score, Precision, and Recall values
Posted by: Hani - May-07-2020, 08:58 PM - Forum: Data Science - Replies (3)

from tensorflow.keras import backend as K
.
.
.
def computeMetrics(true, pred): # considering sigmoid activation, threshold = 0.5
pred = K...... More

Print this item

  Why, TypeError: expected string or bytes-like object ?
Posted by: JohnnyCoffee - May-07-2020, 08:56 PM - Forum: General Coding Help - Replies (3)

The method below aims to receive parameters in order to detect xss threat. I could not identify an error in the code below but only on the return of t..... More

Print this item

  Python Program For Finding Sub String Of Given String
Posted by: Keeny844 - May-07-2020, 08:42 PM - Forum: Code Review - Replies (3)

name = input().strip()

print("\n".join(name[i: i + j] for i in range(len(name)) for j in range(1, len(name) + 1 - i)))

Print this item

  how to solve the 'NO SUCH DIRECTORY OR FILE' in pandas, python
Posted by: MohammedSohail - May-07-2020, 07:44 PM - Forum: Data Science - Replies (10)

I am not able to run my code. This is my code
##############
import pandas as pd

df = pd.read_csv("C:'\Users'\User'\Downloads'\weathercsv")
prin..... More

Print this item

  Python pandas merge with or conditional
Posted by: Lafayette - May-07-2020, 07:34 PM - Forum: Data Science - No Replies

I am merging two dataframes that have 3 common fields. The issue is that if you cannot find the value you are looking for you should look for another ..... More

Print this item

  Python 3 change label text
Posted by: gw1500se - May-07-2020, 06:53 PM - Forum: GUI - Replies (6)

I have a tkinter label that I want to change. I've found several articles on how to so that but none work. If I try to use 'textvariable' I get an err..... More

Print this item

  Irrational number
Posted by: chpyel - May-07-2020, 05:51 PM - Forum: General Coding Help - Replies (11)

how could i check if a number is irrational

Print this item

  [Flask]After login page is not redirecting me to dashboard
Posted by: shockwave - May-07-2020, 05:22 PM - Forum: Web Scraping & Web Development - No Replies

Hi . As title says after I press login button the page refreshes and it doesn't redirect me to the '/dashboard' route .
My code :
[python]
from fla..... More

Print this item

  What is the best way to set application-wide config values?
Posted by: ajorona - May-07-2020, 04:59 PM - Forum: General Coding Help - Replies (1)

I want to write a custom logger and I want to configure the logger once, and import the logger in multiple classes. I would like to do this without us..... More

Print this item

  Scraping Multiple Pages
Posted by: mbadatanut - May-07-2020, 04:23 PM - Forum: Web Scraping & Web Development - Replies (1)

hello - I am having difficult scraping more than one page on a real estate website. any tips or recommendations on my code would be very much apprecia..... More

Print this item

  program unresponsive during pynput mouse click
Posted by: RobotTech - May-07-2020, 03:28 PM - Forum: GUI - Replies (1)

[python]from PIL import Image #pip install Pillow
import pytesseract #pip install pytesseract
import argparse #pip install argparse
import cv2 #pip..... More

Print this item

  Homework advice - Boolean function, whole-word values
Posted by: musicjoeyoung - May-07-2020, 03:02 PM - Forum: Homework - Replies (4)

Folks on here were so quick to help with my first question--I appreciate everyone who replies!

I completed a task assigned to me, but I'm missing s..... More

Print this item

  Parse a URL list stored in a CSV
Posted by: paulfearn100 - May-07-2020, 02:26 PM - Forum: Web Scraping & Web Development - No Replies

"""
hello any help greatly appreciated
urls stored in the CSV Coloum A lines 1-100, i would like to parse the links in each url to output to anothe..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Brazil Python Help to aut... 10 hours ago MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... Yesterday, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
Most views
  The best Prog... 579219
  Tutorial Requ... 511997
  Web Scraping ... 442156
  Newbie with P... 386272
  New Users Int... 379306
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+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
MileHigh303 Yesterday
ndx101 Yesterday
OtiliaBecker Yesterday
NAGASOWMYAGUNDU 11-20
shipa1autotransport 11-20

User Panel Messages

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