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,992
» Latest member: maribita
» Forum threads: 38,736
» Forum posts: 175,580

Full Statistics

Online Users
There are currently 49 online users.
» 1 Member(s) | 43 Guest(s)
Applebot, Bing, Google, AOL, maribita

Latest Threads
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
3 hours ago
» Replies: 1
» Views: 69
print does not open conso...
Forum: General Coding Help
Last Post: Pedroski55
8 hours ago
» Replies: 2
» Views: 95
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Yesterday, 03:05 PM
» Replies: 3
» Views: 2,537
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:58 PM
» Replies: 2
» Views: 99
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:56 PM
» Replies: 6
» Views: 216
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,047
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 463
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,096
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,168
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 851

 
  Think my math is wrong?
Posted by: edwdas - Nov-05-2019, 02:40 PM - Forum: General Coding Help - Replies (3)

So I'm trying to calculate the median from inputs (int) that a user submits WITHOUT using a statistics module (just want to see how it can be done)
..... More

Print this item

  Problem with importing a CSV file
Posted by: Chopan2211 - Nov-05-2019, 02:19 PM - Forum: General Coding Help - Replies (6)

I have a problem importing a CSV file. I have tried with r' and singel / and dubbel \\ both ways. The same problem.
But I can easily import the same ..... More

Print this item

  How to read text file line by line
Posted by: SriRajesh - Nov-05-2019, 01:18 PM - Forum: General Coding Help - Replies (1)

HI,
I have the below file (.config, which is similar to a text file), and I want to read and save it into dataframe.
I use the below code:



[p..... More

Print this item

  help with sending and receiving pics taken
Posted by: mcgrim - Nov-05-2019, 12:49 PM - Forum: Networking - Replies (9)

I am trying to send a few pics via socket from server to client.
I get this error on the client side, and I am not sure how to fix it.
[error]
Traceb..... More

Print this item

  Create .exe with program.py
Posted by: preliator - Nov-05-2019, 11:55 AM - Forum: General Coding Help - Replies (2)

Good morning all,

I want to create an .exe file with my Python program, so I can use it anywhere.

I installed pyinstaller, started the command o..... More

Print this item

  Create a directory structure across many servers
Posted by: metro17 - Nov-05-2019, 10:51 AM - Forum: General Coding Help - Replies (1)

I have a text file WITH 7 servers as below
ABCD
EFFG
IJKL
MNOO
QRST
UBVW
XYZZ

I need to connect to each of these servers and
Create a dire..... More

Print this item

  Login system not working
Posted by: Unknown_Relic - Nov-05-2019, 10:44 AM - Forum: General Coding Help - Replies (2)

im new to python and im trying to create a login system in python 3.7.3. There are two separate files called Usernames and Passwords. When i run the c..... More

Print this item

  Dictionaries in Lists
Posted by: szbeco - Nov-05-2019, 10:23 AM - Forum: Homework - Replies (6)

Hi there!

I started learning Python with the help of "Python Crash Course" by Eric Matthes. The progress is good, but I stuck at one of the ..... More

Print this item

  error merge text files
Posted by: ledgreve - Nov-05-2019, 10:07 AM - Forum: General Coding Help - Replies (3)

Hello!

I want to merge all of the txt-files I have in a specific folder on my computer. I looked it up and apparently you have to use the followin..... More

Print this item

  read_csv error and rows/columns missing
Posted by: karlito - Nov-05-2019, 10:04 AM - Forum: Data Science - Replies (9)

I thought I got everything right till I ended up with a different file to read. Damn for 2 days I'm struggling with it. Help, please.
link to the dat..... More

Print this item

  openpyxl, if value in cell then change format
Posted by: genderbee - Nov-05-2019, 09:19 AM - Forum: General Coding Help - Replies (1)

Hello,
my code is not working and I don't know why.
I need change font size when value in cell is '2', for A1 to A100.

[python]
# load libs
fro..... More

Print this item

  File encryption
Posted by: itzik - Nov-05-2019, 05:02 AM - Forum: General Coding Help - Replies (5)

hi,
how can i unencrypted python file?
i have this lines:

[python]
def index ():#line:239
OOO0O00OOOOO0O000 =int (errorChecking (count =Tru..... More

Print this item

  KeyError -read multiple lines
Posted by: bongielondy - Nov-04-2019, 09:19 PM - Forum: General Coding Help - Replies (2)

I am new to Python. An example reviews code has single line reviews and runs well. Mine has multiple lines. I converted the csv file to tsv. The revie..... More

Print this item

  csv reader
Posted by: kgiles - Nov-04-2019, 08:25 PM - Forum: General Coding Help - Replies (3)

I'm very early on in python, but I'm trying to process a csv file with this code:
[python]
# importing csv module
import csv

# csv file name..... More

Print this item

  [split] Print JSON Dictionary to Excel?
Posted by: venukommu - Nov-04-2019, 07:14 PM - Forum: General Coding Help - Replies (1)

[python]
# fake json data
data = {
"features": [
{
"attributes": {
"color": "green",
"s..... More

Print this item

  Question about Python Code
Posted by: Than999 - Nov-04-2019, 06:39 PM - Forum: Homework - Replies (10)

Hi, I was wondering if someone can help me understand this Python code. If I have a list with a collection of 3, 2, 5, 7, 6, 8 as show below.  How is ..... More

Print this item

  Replace Line in Textfile
Posted by: Deadline - Nov-04-2019, 05:32 PM - Forum: General Coding Help - Replies (1)

I have a really simple query, but I can't find an answer to it. I'm new to Python and am learning for a project I'm setting up, but I seem to have fal..... More

Print this item

  problem with readline()
Posted by: schlundreflex - Nov-04-2019, 04:30 PM - Forum: General Coding Help - Replies (6)

Hi,
I just start to learn pyhton. I'm using 3.7.2 on windows. I have text files which contain full paths of video files, like:
video.lst:
[quote]
..... More

Print this item

  Coding
Posted by: srvmig - Nov-04-2019, 04:10 PM - Forum: General Coding Help - Replies (5)

I have a series of data like x = [ 103, 104, 110 , 108, 115] and another number in z = [100]. I get the percentage of changes like changes = (x-z)/z. ..... More

Print this item

  Assistance with making functions
Posted by: edwdas - Nov-04-2019, 04:03 PM - Forum: General Coding Help - Replies (4)

Howdy, this is not homework rather I want to know if its possible regardless of how inefficient the process is. Im attempting to create a function tha..... More

Print this item

  Complex floating issue
Posted by: arshad - Nov-04-2019, 03:55 PM - Forum: General Coding Help - Replies (2)

Can anyone make a look to following code why it cant calculate complex numbers in the defined arrray.

[python]
import numpy as np

n=5
alpha = ..... More

Print this item

  Delete specific lines contain specific words
Posted by: mannyi - Nov-04-2019, 03:31 PM - Forum: General Coding Help - Replies (2)

Hi

Have this code to delete line contain name "sandy15" however it delete others lines two and always keep the last line in the test

Before the ..... More

Print this item

  Web Development help
Posted by: johncamp - Nov-04-2019, 02:21 PM - Forum: Web Scraping & Web Development - Replies (6)

Hi,

I have an ecommerce website, I am really stressed out on the issue that my website is loading really very slow despite of the fact that I have im..... More

Print this item

  cv2 show image
Posted by: mcgrim - Nov-04-2019, 01:33 PM - Forum: General Coding Help - Replies (4)

I am trying to display the images I take with the webcam.
The iteration presents no issue, but right after the loop is finished,
I get this error:

[..... More

Print this item

  HELP ME!!
Posted by: Luke_0162 - Nov-04-2019, 11:49 AM - Forum: General Coding Help - Replies (10)

I got some problems with creating the following python programme. I want to let python to calculate the sum by itself while the student fills in the a..... More

Print this item

  INA219 with PI4
Posted by: korenron - Nov-04-2019, 11:40 AM - Forum: General Coding Help - Replies (4)

hello
I'm having some problem with this guide
https://www.rototron.info/raspberry-pi-ina219-tutorial/

while running this code
[python]
from i..... More

Print this item

  Print the longest str from user input
Posted by: edwdas - Nov-04-2019, 09:42 AM - Forum: Homework - Replies (5)

Essentially, the user inputs random strings and i am trying to reprint the longest string that the user input (so far it only prints the first non-cap..... More

Print this item

  Matrix Calculation Problem
Posted by: arshad - Nov-04-2019, 09:07 AM - Forum: General Coding Help - Replies (4)

I want to add array numbers in nested for loop.
inner loop depends on outer loop. It give me some unexpected results. Following is my code please che..... More

Print this item

  Age calculation
Posted by: Kaanatmaca - Nov-04-2019, 08:57 AM - Forum: Homework - Replies (4)

Hi,how can we calculate someones age by using python coding? (In the calculation not only the diffrence between years are needed,the months and days s..... More

Print this item

  Object and lane line detection
Posted by: Gregerwhut - Nov-04-2019, 08:22 AM - Forum: General Coding Help - Replies (2)

Hello,

I am having issues implementing both a lane line detection and obejct detection in the same .py file, i want to run them simultaneously.
..... More

Print this item

  IndentationError
Posted by: jagannath - Nov-04-2019, 07:30 AM - Forum: General Coding Help - Replies (1)

Hi All,

I'm new to python. Could you please help me why I'm getting error?

[python]
def main():
print ("Hello world")
if __name__ == "__..... More

Print this item

  Python exercise
Posted by: HY2000 - Nov-04-2019, 06:13 AM - Forum: Homework - Replies (2)

For the file attached below, add the following two functions to the code.

1. A search by programme ID function. When this function is selected, a u..... More

Print this item

  How do I map a list of values to specified colors?
Posted by: larkypython - Nov-04-2019, 02:54 AM - Forum: General Coding Help - Replies (4)

Here is what I want to do:
a list of 19 values:
[-1, 1, -2, 2, -3, 3, -4, 4, -5, 5, -6, 6, -7, 7, -8, 8, -9, 9, 0]
I would like the color grey gradual..... More

Print this item

  Python learning strategy
Posted by: IluvPython - Nov-04-2019, 01:24 AM - Forum: General Coding Help - Replies (6)

This is more of a general strategy question, as far as learning python goes, rather than a specific request for help with questions.

[img]https://i..... More

Print this item

  Python and a pivot table
Posted by: stilwellj - Nov-04-2019, 12:56 AM - Forum: Data Science - No Replies

I am trying to create a output pivot table from raw data to a table in a new excel file. below is my error message and my code. I have uploaded my ful..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Weird failure in Selenium 3 hours ago glestwid Larz60+ General Codin...
  print does not open conso... 8 hours ago Tycho_2025 Pedroski55 General Codin...
  Fred Economic Data API Yesterday, 15:05 warrior42 Trickety Web Scraping ...
  create ocr to detect lice... Yesterday, 13:58 bimosora noisefloor General Codin...
  Parse Markdown / get the ... Yesterday, 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
  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...
Most views
  The best Prog... 577478
  Tutorial Requ... 501334
  Web Scraping ... 441104
  Newbie with P... 385163
  New Users Int... 369895
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
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
maribita Today
AnalystRobert Today
Safariscampoea Today
DataAnalytics021 Today
markwood955 Yesterday

User Panel Messages

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