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,262
» Latest member: chuhlowe
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

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

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
7 hours ago
» Replies: 2
» Views: 81
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
8 hours ago
» Replies: 1
» Views: 49
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
9 hours ago
» Replies: 1
» Views: 50
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
10 hours ago
» Replies: 5
» Views: 309
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 11:31 PM
» Replies: 0
» Views: 43
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Yesterday, 06:38 PM
» Replies: 0
» Views: 69
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:02 PM
» Replies: 10
» Views: 260
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 03:33 PM
» Replies: 3
» Views: 134
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 234
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 418

 
  Newbe question about Print() to PyQt
Posted by: TimW - Dec-18-2017, 10:32 PM - Forum: GUI - Replies (9)

I am looking to porting my python code to PyQt but I don't understand how to "Print()" to a text window. a print fragment of my code is below and it ..... More

Print this item

  Newbie question to show nested namedtuple list
Posted by: zydjohn - Dec-18-2017, 09:45 PM - Forum: General Coding Help - Replies (4)

Hello:
I have some code, which is not finished yet:
[python]
import collections

Sales = collections.namedtuple('Sales', ['ID', 'QuarterNo', 'Qua..... More

Print this item

  How to merge 2 parts of script
Posted by: br0ken - Dec-18-2017, 07:32 PM - Forum: General Coding Help - No Replies

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  List of Strings Problem
Posted by: jge047 - Dec-18-2017, 07:25 PM - Forum: Homework - Replies (3)

The input is a list of strings, I need to add code below it (and fix indentation and variable names if needed) so that the code will print a story for..... More

Print this item

  [Errno 22] Invalid argument
Posted by: Asafb - Dec-18-2017, 04:13 PM - Forum: General Coding Help - Replies (8)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Reading and writing Windows filepath without treating backslash as escape character
Posted by: Dangthrimble - Dec-18-2017, 04:02 PM - Forum: General Coding Help - Replies (3)

I am writing a python script to sit between two Windows applications, one that generates a list of filenames, including the full path, and the other t..... More

Print this item

  Method on instance changing its representation
Posted by: Samsar - Dec-18-2017, 03:49 PM - Forum: Homework - Replies (1)

Im asked to make a class SparseMatrix that takes in a numpy array and represent it in a specific format(in my case its CSR format). Then im asked to a..... More

Print this item

  Newbie question: random
Posted by: Truman - Dec-18-2017, 12:10 PM - Forum: General Coding Help - Replies (8)

I intend to make lottery drawing program but first wanted to check the basic random module with a code:
[python]
from random import *
print(randint..... More

Print this item

  Native support for Python in Excel
Posted by: buran - Dec-18-2017, 12:02 PM - Forum: News and Discussions - Replies (1)

For all of you that work with both python and Excel, here is interesting news.

https://excel.uservoice.com/forums/30492...desktop-ap..... More

Print this item

  Not able to fetch data from a webpage
Posted by: sumandas89 - Dec-18-2017, 11:11 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi,
I studied the Web Scraping Tutorial 1 and trying some practical tests on a webpage. The html code below is a code segment. I tried to pick..... More

Print this item

  this small code dosento work
Posted by: juanb007 - Dec-18-2017, 10:59 AM - Forum: General Coding Help - Replies (2)

Hi guys

im just learinig python so the task is to pass throu list a and print only numbers that are bigger than 5. my code isnt working and i dont ..... More

Print this item

  Help developing img cropping tool in python
Posted by: lerugray - Dec-18-2017, 10:28 AM - Forum: General Coding Help - Replies (9)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Problem downloading 2.7.8 Mac OSX
Posted by: Benjipincus - Dec-18-2017, 08:52 AM - Forum: General Coding Help - Replies (2)

Hi there,
having a problem installing python 2.7.8 for mac. When installing the software, it says, “Installer failed, cannot install because there is..... More

Print this item

  Why is my crawler not recording 404s I think it may be an error in the logic
Posted by: RickyWilson - Dec-18-2017, 05:46 AM - Forum: General Coding Help - Replies (3)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Python for machine learning, complete beginners
Posted by: pythonario - Dec-18-2017, 05:38 AM - Forum: General Coding Help - Replies (3)

I am following along in this youtube video here: https://www.youtube.com/watch?v=80fZrVMurPM&t=3797s

I do fine with minor hiccups until the 1:03 ma..... More

Print this item

  Text formatting question
Posted by: ToddRyler - Dec-18-2017, 02:21 AM - Forum: General Coding Help - Replies (2)

Hello,
I regularly have to copy text from pdf files, which i save as a doc file as my notes to review later. Of course, the formatting is all lost, ..... More

Print this item

  loop issues
Posted by: kanwal121 - Dec-17-2017, 10:18 PM - Forum: Homework - Replies (4)

[python]
import random #this is to import the random number for calculations
initialBalance = 1000 #this is the initial balance £1000
wholeSalePrice =..... More

Print this item

  RandomForestClassifier IndexingError: Too many indexers
Posted by: metalray - Dec-17-2017, 08:05 PM - Forum: Homework - Replies (2)

Dear Python Experts,

I have googled this error but just came to new ways of slicing the data frame what led to near error (invalid slice).
What do..... More

Print this item

  How to Check if something inside a Database exists? 3.6.0
Posted by: Rapier - Dec-17-2017, 07:34 PM - Forum: General Coding Help - Replies (2)

I am creating a quiz with a log in system and I'm using a sqlite3 database to store the data on each account. I was wondering if there is anyway to ha..... More

Print this item

  Lists in lists
Posted by: ColdDeath - Dec-17-2017, 06:37 PM - Forum: General Coding Help - Replies (4)

I have the following code, for making an AI in tic tac toe (or knots and crosses).

Pre: I've written a program to make every possible configuration..... More

Print this item

  unit 18 codes
Posted by: Miss_Kaur - Dec-17-2017, 06:22 PM - Forum: Homework - Replies (7)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  the newbiest question since the beginning of time
Posted by: Klar - Dec-17-2017, 05:24 PM - Forum: GUI - Replies (9)

I installed wxpython and...




Wait for it...







I don't know what I should type after import to import it.
wx didn't work, neither..... More

Print this item

  Learning matplotlib - axis not lining up
Posted by: SRG - Dec-17-2017, 04:34 PM - Forum: General Coding Help - Replies (1)

Hi. I'm learning matplotlib and have an issue. I have a scatter plot working perfectly. I'm trying to draw lines between two points but it seems to ..... More

Print this item

  Updating matplotlib image
Posted by: mcgillca - Dec-17-2017, 04:16 PM - Forum: Data Science - Replies (2)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  moving from os to subprocess
Posted by: Barrowman - Dec-17-2017, 04:11 PM - Forum: GUI - Replies (10)

I am working on a Linux Mint 18.2 laptop.
I used python 2.7 in the past but moved to 3.5 and now 3.6. I have carried on using os.system calls as I ca..... More

Print this item

  Is this O(1) or O(n)?
Posted by: hshivaraj - Dec-17-2017, 02:36 PM - Forum: General Coding Help - Replies (6)

Hey all.
Im trying to get this right. Please correct me if my understanding is right or if your agree.
I think the following code has [inline]time c..... More

Print this item

  Change internal representation
Posted by: Samsar - Dec-17-2017, 02:31 PM - Forum: Data Science - Replies (5)

I have written a class that takes in a matrix as argument and changes it's internal representation to CSR. Now I'm trying to write a class method that..... More

Print this item

  Unit 18 Procedural Programming Python
Posted by: kanwal121 - Dec-17-2017, 01:47 PM - Forum: Homework - Replies (6)

def newBalance(newBalance,addvertCost,productPurchased): #this is to pass the calculations throgh the parameter
answer = newBalance-addvertCost-..... More

Print this item

  Looping through variables and setting them
Posted by: ColdDeath - Dec-17-2017, 01:27 PM - Forum: General Coding Help - Replies (7)

I'm not new to programming, however I am new to Python.

To learn python, I've decided to make an AI for tic tac toe (or knots and crosses).

I've..... More

Print this item

  Pollution level using dictionaries
Posted by: klara - Dec-17-2017, 10:45 AM - Forum: Homework - Replies (37)

So I have this problem: I have a month and for each day in the month I have a city with a certain level of pollutin. Some cities can also be missing f..... More

Print this item

  Need Help With My PYgame Script
Posted by: ghost0fkarma - Dec-17-2017, 01:21 AM - Forum: Game Development - Replies (2)

[python]import pygame

pygame.init()

display_width = 800
display_height = 600

Black = (0, 0, 0)
White = (255, 255, 255)
Red = (255, 0, 0)

gameDispl..... More

Print this item

  Newbie question: .isnan
Posted by: Truman - Dec-17-2017, 01:08 AM - Forum: General Coding Help - Replies (3)

[quote]
import math
raw_data = [56.2, float('NaN'), 51.7, 55.3, 52.5, float('NaN'), 47.8]
filtered_data = []
for value in raw_data:
if not ma..... More

Print this item

  Apparently module has no attribute display?
Posted by: Klar - Dec-17-2017, 12:07 AM - Forum: Game Development - Replies (29)

Hey, it's me again! I have no experience with PyGame at all!
Anyway, I'm importing this code:
[python]import pygame

screen = pygame.display.set_m..... More

Print this item

  SeePy and Loge - easy and fast dynamic report generation with Python
Posted by: lucke - Dec-16-2017, 10:58 PM - Forum: Code sharing - Replies (1)

Welcome all python user! I’m new on this forum.

Please find two projects I have been working on for some time.

SeePy
https://bitbucket.org/lukaszlab..... More

Print this item

  Newbie question for a kind of rolling average of list of lits
Posted by: zydjohn - Dec-16-2017, 09:13 PM - Forum: General Coding Help - Replies (3)

Hello:
I have one list of lists, like this:

totals = [[1, 2, 3], [2, 3, 4], [5, 6, 7], [10, 9, 8], [4, 5, 6]]
I need a functio..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 7 hours ago nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 8 hours ago Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 9 hours ago Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... 10 hours ago Skaperen DeaD_EyE News and Disc...
  conditional nested loops Yesterday, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... Yesterday, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue Yesterday, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... Yesterday, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 578994
  Tutorial Requ... 510695
  Web Scraping ... 442010
  Newbie with P... 386040
  New Users Int... 377318
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
chuhlowe Today
SledgeNE Today
nathanael Yesterday
JamesFalkner Yesterday
stevecoh1 Yesterday

User Panel Messages

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