Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,654
» Latest member: JoshEdgar
» Forum threads: 37,398
» Forum posts: 169,949

Full Statistics

Online Users
There are currently 371 online users.
» 1 Member(s) | 362 Guest(s)
Baidu, Bing, Yandex, Facebook, Google, Applebot, AOL, JoshEdgar

Latest Threads
How To Make A PyQt5 Progr...
Forum: GUI
Last Post: menator01
3 hours ago
» Replies: 1
» Views: 77
ModulNotFoundError matplo...
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 1
» Views: 56
Problem Converting Tradin...
Forum: General Coding Help
Last Post: kralxs
9 hours ago
» Replies: 0
» Views: 81
New on python. Needs help...
Forum: General Coding Help
Last Post: deanhystad
10 hours ago
» Replies: 1
» Views: 92
Can provide python tutori...
Forum: Jobs
Last Post: carellapansullon
Yesterday, 05:00 PM
» Replies: 1
» Views: 188
Win or Loss Prediction
Forum: General Coding Help
Last Post: ksasi2k3
Yesterday, 01:46 PM
» Replies: 4
» Views: 187
Good way to ignore case w...
Forum: General Coding Help
Last Post: menator01
Yesterday, 12:39 PM
» Replies: 1
» Views: 116
how to edited Tkinter Top...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 10:16 AM
» Replies: 7
» Views: 190
using mutable in function...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 10:10 AM
» Replies: 1
» Views: 135
Cucumber installation
Forum: General Coding Help
Last Post: SandraYokum
Yesterday, 07:52 AM
» Replies: 2
» Views: 128

 
  How to call a routine in another Python program
Posted by: kenwatts275 - May-17-2020, 03:31 PM - Forum: General Coding Help - Replies (1)

Hello all,
The following two programs, test31.py and test32.py have a pre_entry and post_entry routines.

[python]# test31.py
def pre_entry(values):
..... More

Print this item

  Gui slot machine-out of memory error
Posted by: steve_shambles - May-17-2020, 01:40 PM - Forum: General Coding Help - Replies (12)

Python V3.72
Windows 7\Linux Mint 19.1

A game I am working on called Freespin Frenzy
crashes after a while with either an "out of memory"
messag..... More

Print this item

  HELP: String indices must be integers
Posted by: animrehrm - May-17-2020, 01:09 PM - Forum: General Coding Help - Replies (6)

Good evening, I recently been studying regarding about ChatBots using the Multinomial Naive Bayes approach and I got this problem the code when collec..... More

Print this item

  Need a nice guy to help!
Posted by: Rasmus - May-17-2020, 12:58 PM - Forum: Jobs - Replies (2)

I have a huge project I want to pursue. Problem is that, I know nothing about python and this business I want to create requires high skilled python d..... More

Print this item

  Help with pandas
Posted by: palladium - May-17-2020, 11:16 AM - Forum: General Coding Help - Replies (3)

Hi all

I have the following dataframe that has been extracted from an Excel spreadsheet that I need to manipulate in code.
[code]
..... More

Print this item

  How do I change wx version dependency?
Posted by: belfacode - May-17-2020, 09:18 AM - Forum: General Coding Help - No Replies

Hello,
First off, I'm not a coder and know nothing about python language.
I want to run trelby, a writing program written in python, on void linux...... More

Print this item

  Sorting nested lists in ascending order
Posted by: jszum - May-17-2020, 08:55 AM - Forum: Homework - Replies (2)

Hi everyone,
I need some help with writing a function that takes ones argument (list) and sorts out nested lists in ascending order.

This is wha..... More

Print this item

  Remove from end of string up to and including some character
Posted by: lbtdne - May-17-2020, 08:31 AM - Forum: General Coding Help - Replies (2)

Hi all,

I'm trying to take some string, stri_ , and iterate through it until I find a particular character. Then, I will update the stri_ to be st..... More

Print this item

  How to close all windows when exit program
Posted by: scratchmyhead - May-17-2020, 07:19 AM - Forum: GUI - Replies (3)

I was just wondering if there is a way to close all open windows upon program exit?

Print this item

  Default Values for radiobuttons
Posted by: xuraax - May-17-2020, 06:40 AM - Forum: GUI - Replies (2)

I am learning to use tkinter and I have a program which includes Radiobuttons and Entry. These work well if I press buttons and insert text into the a..... More

Print this item

  Problematic Assignment
Posted by: EB22 - May-17-2020, 06:33 AM - Forum: Homework - Replies (3)

Hello, I m stuck here, I dont know whats missing or whats wrong with it. Please, if anyoane have any suggestions, I literally cant continue. Thanks!
..... More

Print this item

  FutureWarning: pandas.util.testing is deprecated
Posted by: buunaanaa - May-17-2020, 05:48 AM - Forum: General Coding Help - Replies (3)

I am using anaconda3 windows10
I am coding main.ipynb using jupyter notebook
I wrote a function in 2.py which is in the same folder as the main.ipyn..... More

Print this item

  Print the frequency of each coin for the combinations that sum to the amount N
Posted by: Pranav - May-17-2020, 05:32 AM - Forum: Homework - Replies (3)

Description:

The different combinations of the coins in the range of 1 to N that sum to the amount N needs to be printed. I have used recursiv..... More

Print this item

  Changing the name of a windows class?
Posted by: tibegato - May-16-2020, 11:49 PM - Forum: General Coding Help - Replies (4)

If you have a handle of a window from ANY application, is there a way to rename it's classname?

Print this item

  Loop triggered by button help
Posted by: Purple0 - May-16-2020, 10:13 PM - Forum: GUI - Replies (1)

Hi, I need help. I'm trying to make a loop, triggered by a button, that:

First press: Relay goes on and off intermittently
Second press: Turns rel..... More

Print this item

  User Update in Mysql with python
Posted by: oguzcan - May-16-2020, 06:43 PM - Forum: Homework - Replies (3)

Hi,

I have a problem. My library mysql-connector

my code working but doesnt updating table

[python]if passentry != "":
query=("UPDATE cu..... More

Print this item

  stop cycle while
Posted by: windows11 - May-16-2020, 02:42 PM - Forum: General Coding Help - Replies (1)

Hello people, I dont know how to stop/pass this cycle while.
the situation is the next:
In one web page I need to click few times until reload the n..... More

Print this item

  if condition not behaving as expected
Posted by: EricBHK - May-16-2020, 10:44 AM - Forum: General Coding Help - Replies (10)

I have a while loop in which I check if a certain geographic point is located within any of the 7 regions of a given province (using PostGis ST_WITHIN..... More

Print this item

  Netmiko Program ssh from the Jumpssh ( host -> Jumphost -> Network Device
Posted by: matya0403 - May-16-2020, 10:38 AM - Forum: Networking - Replies (3)

I am getting error like below
TypeError: 'TerminalServerSSH' object is not callable
[python]
from netmiko import ConnectHandler
from getpass import ..... More

Print this item

  Data placement
Posted by: nboogerz - May-16-2020, 10:18 AM - Forum: General Coding Help - Replies (1)

Hi,

I was just wondering if 'Declaring variables' close to each other in Python scripts results in their memory location being close to each other ..... More

Print this item

  Help with Code
Posted by: darkc0de - May-16-2020, 10:04 AM - Forum: General Coding Help - Replies (1)

Hello everyone, need some help with my code below. The objective of the code is to take input for 3 sides of a triangle from the user and print the ar..... More

Print this item

  Checkbox snippet
Posted by: menator01 - May-16-2020, 08:26 AM - Forum: Code sharing - No Replies

A tkinter checkbox snippet I wrote and am playing around with. Maybe it will be useful for someone learning tkinter checkboxes and passing their value..... More

Print this item

  C style strings
Posted by: deanhystad - May-16-2020, 06:06 AM - Forum: General Coding Help - Replies (2)

I have a Python program that communicates with a C program over a socket connection. The C program sends a "message" which contains floats and ints a..... More

Print this item

  ChatterBot: How to store unanswered question in a text file?
Posted by: animrehrm - May-16-2020, 06:00 AM - Forum: General Coding Help - No Replies

Hello, how do i store an unanswered question in chatterbot? I have a here a code for my file, but it wont store in my text file. Cry

[b]app.p..... More

Print this item

  How to implement the if then else statement properly.
Posted by: scratchmyhead - May-16-2020, 05:39 AM - Forum: GUI - Replies (5)

I have a small program that enters room numbers of a motel. Basically what I want to achieve is to not re-enter the room twice into the database. It's..... More

Print this item

  Need Assistance
Posted by: Jack_Daniels - May-16-2020, 05:35 AM - Forum: Homework - Replies (4)

I'm taking an Introductory course and I'm having a really hard time.

I need assistance simulating a check out process at a restaurant

I'm able ..... More

Print this item

  how to create my own custom logging message
Posted by: maiya - May-16-2020, 02:48 AM - Forum: General Coding Help - Replies (4)

Hi All,

Could any one please let me know, how to create my own custom logging.

For example below:

2020-05-15 11:55:17,823: [action_done] Pyth..... More

Print this item

  Python re.sub text manipulation on matched contents before substituting
Posted by: xilex - May-16-2020, 02:35 AM - Forum: General Coding Help - Replies (2)

Hi, I have the following code below:

[python]import re

t = '<img data src="some-thing">'
pattern = '(<img ).*?(src=")(.*?)(">)'
u = re.sub(pat..... More

Print this item

  Turtle Long Press Lag
Posted by: Jimmy_Py - May-16-2020, 01:52 AM - Forum: Game Development - Replies (4)

Below is some code from a tutorial for making pong with Turtle. I noticed that the short presses of "w" and "s" move the left paddle instantaneously, ..... More

Print this item

  How to verify the give number is valid
Posted by: Mekala - May-16-2020, 12:12 AM - Forum: General Coding Help - Replies (3)

Hi,
I am trying to verify the given number is a valid phone number or not.

Conditions:
1. The number may be a 10 digit one : 9898989876
2. The n..... More

Print this item

  How to make button text bold in Tkinter?
Posted by: scratchmyhead - May-15-2020, 11:43 PM - Forum: GUI - Replies (2)

I've googled this but can't find an answer. I just want to make the text on a button bold.

Print this item

  Python 3.7.4 (FTPLib Deprecated). Now What?
Posted by: bmccollum - May-15-2020, 09:24 PM - Forum: General Coding Help - Replies (1)

I've been running a Python script for a while that scrapes data from a website, parses through what it finds, saves everything to a CSV file, and then..... More

Print this item

  question: finding multiple strings within string
Posted by: djf123 - May-15-2020, 08:19 PM - Forum: General Coding Help - Replies (4)

I am trying to figure out how to do the following. I have a string "djfk83dhfdog83748djfk83dhfcat83748djfk83dhfmonkey83748djfk83dhfhuman83748" and I w..... More

Print this item

  Read Multiples Text Files get specific lines based criteria
Posted by: zinho - May-15-2020, 08:08 PM - Forum: General Coding Help - Replies (5)

How can I read multiples text files get specific lines by criteria a save into CSV master file

I try this
[python]import glob
import pandas as pd..... More

Print this item

  How to ignore empty columns from DB?
Posted by: Winfried - May-15-2020, 07:15 PM - Forum: General Coding Help - Replies (1)

Hello,

As I read rows from a database and concatenate some columns into a string, some columns are empty.

What is the correct way to ignore thos..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How To Make A PyQt5 Progr... 3 hours ago rcwildabeast menator01 GUI
  ModulNotFoundError matplo... 4 hours ago WicardBohnam deanhystad General Codin...
  Problem Converting Tradin... 9 hours ago kralxs kralxs General Codin...
  New on python. Needs help... 10 hours ago jeromep deanhystad General Codin...
  Can provide python tutori... Yesterday, 17:00 Zahiba_Siddiqui carellapansullon Jobs
  Win or Loss Prediction Yesterday, 13:46 ksasi2k3 ksasi2k3 General Codin...
  Good way to ignore case w... Yesterday, 12:39 Winfried menator01 General Codin...
  how to edited Tkinter Top... Yesterday, 10:16 kucingkembar deanhystad General Codin...
  using mutable in function... Yesterday, 10:10 akbarza snippsat General Codin...
  Cucumber installation Yesterday, 07:52 SDS SandraYokum General Codin...
  if else statements Yesterday, 07:27 remy DeaD_EyE General Codin...
Most views
  The best Prog... 413089
  Web Scraping ... 304021
  Tutorial Requ... 293438
  Newbie with P... 251546
  Thread remain... 233759
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11871
buran 8090
snippsat 7087
deanhystad 6218
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
JoshEdgar Today
pyry Today
WicardBohnam Yesterday
rcwildabeast Yesterday
tuctboh Yesterday

User Panel Messages

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