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,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,588

Full Statistics

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

Latest Threads
Another app idea - intera...
Forum: News and Discussions
Last Post: Biks
10 hours ago
» Replies: 1
» Views: 1,819
My goal to be hired worki...
Forum: News and Discussions
Last Post: Biks
10 hours ago
» Replies: 3
» Views: 1,115
real community
Forum: News and Discussions
Last Post: Biks
10 hours ago
» Replies: 4
» Views: 3,068
print does not open conso...
Forum: General Coding Help
Last Post: Tycho_2025
Today, 08:52 AM
» Replies: 5
» Views: 173
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
Today, 06:18 AM
» Replies: 4
» Views: 144
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 08:57 AM
» Replies: 1
» Views: 92
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Oct-02-2025, 03:05 PM
» Replies: 3
» Views: 2,558
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Oct-02-2025, 01:56 PM
» Replies: 6
» Views: 254
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,067
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 485

 
  Improving code to autorename if filename exists
Posted by: Den0st - Sep-21-2019, 11:56 PM - Forum: General Coding Help - Replies (5)

Hi all, I have a part of my code that I would like to give a little upgrade.
[python]
import os
import shutil

dest = '/path/to/dest_folder'
sr..... More

Print this item

  Control the application using the keyboard
Posted by: Christina - Sep-21-2019, 10:28 PM - Forum: GUI - Replies (1)

Hello,
I have a problem with key control in my tkinter app. After pressing the key ("Enter", →, ←, +, Ctrl+S) I want to do my function. How do I set ..... More

Print this item

  dict problem with if
Posted by: Adem - Sep-21-2019, 08:55 PM - Forum: General Coding Help - Replies (3)

Hi , I have a little problem with my code , can you explain the problem to me and help to fix it please ? What should I do ? Thanks

[python]dict={"..... More

Print this item

  List of numbers to add
Posted by: Planeuge - Sep-21-2019, 08:40 PM - Forum: General Coding Help - Replies (4)

So, this should be kinda simple to program, but I haven't been coding for a long time, and I'd need that project done the fastest possible, so I'm sor..... More

Print this item

  Multiple Passwords
Posted by: NotPythonQueen - Sep-21-2019, 06:38 PM - Forum: Homework - Replies (17)

I am able to get it to prompt one password, but not all 3. Here is an example of my code:

[python]import getpass

thislist = ["Sun", "Moon", "Sta..... More

Print this item

  data science
Posted by: peepeepoopoo - Sep-21-2019, 03:56 PM - Forum: Data Science - Replies (1)

I have a dataframe with billions of stars, and i would like to narrow it down using equations. I need to find which stars are moving at escape velocit..... More

Print this item

  f-strings and termcolor
Posted by: newbieAuggie2019 - Sep-21-2019, 03:37 PM - Forum: General Coding Help - Replies (6)

Hi!

This problem came up when I was searching for ways to colour and give styles to strings:
..... More

Print this item

  How do I turn a directory of HTML files into one CSV?
Posted by: glittergirl - Sep-21-2019, 02:33 PM - Forum: General Coding Help - Replies (2)

I am currently trying to do the following:

1. Identify all the files that have the text "business class" in it.

2. Print all the files that have..... More

Print this item

  Splitting tuples
Posted by: kasper1903 - Sep-21-2019, 12:36 PM - Forum: Homework - Replies (3)

Hi guys.

Hope you can help

I need to split my tuples into separate columns. This is what I got

[python]
import csv

with open('geyserDat..... More

Print this item

  how to fit an exponential function to multiple data
Posted by: python_newbie09 - Sep-21-2019, 11:24 AM - Forum: Data Science - Replies (1)

I would like to fit an exponential function based on data points of more than one trend. Is this possible?
The code below creates a fit for every col..... More

Print this item

  How to restart another PC on the local network?
Posted by: Kundan - Sep-21-2019, 08:36 AM - Forum: Networking - Replies (1)

How to restart another PC on the local n/w?

Print this item

  MD5 Hashing
Posted by: Evil_Patrick - Sep-21-2019, 07:29 AM - Forum: General Coding Help - Replies (1)

Does anyone know how to do it vice versa?

[python]
import hashlib

password= input("Enter your Password: ")

result = hashlib.md5(password.enc..... More

Print this item

  How to append at a specific position
Posted by: Carson147 - Sep-21-2019, 12:09 AM - Forum: General Coding Help - Replies (5)

This is a little hard to explain but if the code is ran things will start to make sense.

Right now when this program is ran it does this, when I e..... More

Print this item

  eval() function security
Posted by: Skaperen - Sep-20-2019, 11:47 PM - Forum: News and Discussions - Replies (8)

i want to use eval() to evaluate arithmetic expressions provided by a string. the expressions may come from an untrusted source such as a web form. i..... More

Print this item

  basic binary search
Posted by: deep_logic - Sep-20-2019, 07:48 PM - Forum: General Coding Help - Replies (4)

Hi all,
I have googled and researched this problem. I'm just trying to do a binary search program. I'm using "Grokking Algorithms" from Agitya.

I..... More

Print this item

  help for programming
Posted by: navidmo - Sep-20-2019, 06:58 PM - Forum: General Coding Help - Replies (5)

hi everyone
how can i write this code?
input = 3+2+1+2+1
#sort numbers

output = 1+1+2+2+3

Print this item

  New to Machine Learning
Posted by: Rpereir1 - Sep-20-2019, 05:46 PM - Forum: News and Discussions - Replies (1)

Hi,

I am a Senior in an undergraduate ECE program working on a project that explores the possibility of machine learning. The goal of our project i..... More

Print this item

  price + tax rounding
Posted by: mlieqo - Sep-20-2019, 04:14 PM - Forum: General Coding Help - Replies (11)

Hello,

wondering if anybody has some experience with prices + tax calculation?
I've been dealing with a following problem:

I am supposed to dis..... More

Print this item

  How to detect third party packages used in the code
Posted by: SriRajesh - Sep-20-2019, 04:01 PM - Forum: General Coding Help - Replies (5)

Hi,
I really do not know how to do this.
Is there any way to detect what are the third party packages used when we are using code developed by others..... More

Print this item

  ImportError: No module named xlrd
Posted by: dhiliptcs - Sep-20-2019, 03:31 PM - Forum: General Coding Help - Replies (5)

I am trying to extract data from XL sheet and I tried to use the below

import xlrd
[error]ImportError: No module named xlrd [/e..... More

Print this item

  variables from a text file
Posted by: vlk - Sep-20-2019, 02:29 PM - Forum: General Coding Help - Replies (2)

hello everyone,
can you please give me the procedure to retrieve the variables from a text file?

exemple :
pin = "all from the first line from /..... More

Print this item

  I need a query to select the numbers that include 2 digits of 3
Posted by: omidvakili - Sep-20-2019, 02:25 PM - Forum: General Coding Help - Replies (1)

We have a lot of 18-digit data and we want to select numbers that have 2 digits of 3. Can anyone help us to write a Python or VB code? or any solution..... More

Print this item

  Error Syntax -HackerRank challenge
Posted by: RavCOder - Sep-20-2019, 01:33 PM - Forum: General Coding Help - Replies (9)

Hi everyone,
I'm beginner Python coder and I'm trying the challenges on HackerRank.
I'm doing "Learn to code in 30 days " and I'm on 3 day.
this ..... More

Print this item

  Entry widget to variable
Posted by: Zeiphar - Sep-20-2019, 12:46 PM - Forum: GUI - Replies (4)

Hey guys. Im a bit of a scrub when it comes to coding, specially with python. Just need some help with getting the ip/port range from the entry widget..... More

Print this item

  How to automate list separation. NOOB
Posted by: LobateScarp - Sep-20-2019, 10:24 AM - Forum: General Coding Help - Replies (18)

Good day.
I just installed my 1st Python IDE (IDLE) in order to find the max, 2nd max, and min values from a data set.
The problem is that the enorm..... More

Print this item

  Watch me coding
Posted by: axju - Sep-20-2019, 10:06 AM - Forum: Bar - Replies (4)

Someone interested to watch me coding?
I've written a Python package that makes it easy to record your coding session. Check it out if you like. Fee..... More

Print this item

  Animation Plotting help
Posted by: megzk - Sep-20-2019, 10:03 AM - Forum: General Coding Help - No Replies

I need to animate a plot, the plot needs to have an imshow with two scatter plots over the imshow. At each timestep the imshow updates, pulling a grid..... More

Print this item

  low-level coding (TL;DR)
Posted by: Skaperen - Sep-20-2019, 06:40 AM - Forum: Bar - No Replies

i have always enjoyed low-level coding. i did many languages back when i started out on mainframes but assembler was the one i found to be the most f..... More

Print this item

  Reading DBF files from Amazon s3 throwing error - 'int' object has no attribute 'isa
Posted by: abeesm - Sep-20-2019, 06:21 AM - Forum: General Coding Help - Replies (1)

I am developing a python aws lambda function for migrating dbf files into mysql after reading s3 files. .Lambda function get triggered after every dbf..... More

Print this item

  how to do setattr() from an imported module
Posted by: nutron - Sep-19-2019, 10:16 PM - Forum: General Coding Help - Replies (3)

I am trying to modify an attribute of a threaded function in the main python script from a function that has been imported from an external module.
..... More

Print this item

  How to serialize custom class objects in JSON?
Posted by: Exsul1 - Sep-19-2019, 07:46 PM - Forum: General Coding Help - Replies (4)

The Python documentation on JSON reads, "This simple serializ..... More

Print this item

  Need help with this code and am stuck
Posted by: TheBoonester - Sep-19-2019, 07:02 PM - Forum: Homework - Replies (2)

[Python] nums = {1:"One", 2:"Two", 3:"Three" ,4:"Four", 5:"Five", 6:"Six", 7:"Seven", 8:"Eight",\
9:"Nine", 0:"Zero", 10:"Ten", 11:"Eleven", 1..... More

Print this item

  Export Co-ords to CSV file
Posted by: gtbiyb - Sep-19-2019, 05:10 PM - Forum: Data Science - Replies (1)

Hi,

Using Open CV I have successfully found the coordinates of centroids for contours and can print the values:

for c in contours:

..... More

Print this item

  micropy-cli solution - enabling VSCode to program on esp 32 with MicroPython ::
Posted by: apollo - Sep-19-2019, 05:03 PM - Forum: Bar - No Replies

good day dear experts, 




 micropy-cli solution - enabling VSCode to program on esp 32 with MicroPython :: installation issue



the machin..... More

Print this item

  matplotlib recursion error when repeatedly displaying a surface
Posted by: AdeIsHere - Sep-19-2019, 04:36 PM - Forum: General Coding Help - No Replies

When I scroll through my data on a matplotlib 3d surface I get a recursion eror although there is no explicit place where recursion is used.


my c..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Another app idea - intera... 10 hours ago decuser Biks News and Disc...
  My goal to be hired worki... 10 hours ago GnomeSweetGnome Biks News and Disc...
  real community 10 hours ago decuser Biks News and Disc...
  print does not open conso... Today, 08:52 Tycho_2025 Tycho_2025 General Codin...
  create ocr to detect lice... Today, 06:18 bimosora Pedroski55 General Codin...
  Weird failure in Selenium Yesterday, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API 10-02, 15:05 warrior42 Trickety Web Scraping ...
  Parse Markdown / get the ... 10-02, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
Most views
  The best Prog... 577514
  Tutorial Requ... 501602
  Web Scraping ... 441122
  Newbie with P... 385171
  New Users Int... 370051
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Yesterday
maribita Yesterday
AnalystRobert Yesterday
Safariscampoea Yesterday
DataAnalytics021 Yesterday

User Panel Messages

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