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,422
» Latest member: zaasheytop3010
» Forum threads: 38,829
» Forum posts: 176,076

Full Statistics

Online Users
There are currently 33 online users.
» 1 Member(s) | 24 Guest(s)
Bing, Google, AOL, Twitter, AOL, Rowan99

Latest Threads
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
10 hours ago
» Replies: 5
» Views: 143
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 05:21 AM
» Replies: 3
» Views: 753
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 02:57 AM
» Replies: 8
» Views: 534
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 465
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 821
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,778
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 738
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,047
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,631
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,390

 
  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

  need coder to change to sched function in script
Posted by: kwfreverie - Dec-16-2017, 07:47 PM - Forum: Jobs - Replies (6)

Hi coders, The following code is supposed to run once per day. I need help changing the following code so that I can have it run every x hours. Al..... More

Print this item

  Django packages for website with paid user accounts
Posted by: jmarchini - Dec-16-2017, 07:26 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,

I need to build a website which has the following features.

(a) customers create an password protected account and pay a fee.
(b) once..... More

Print this item

  Help with a misbehaving variable.
Posted by: jarrod0987 - Dec-16-2017, 07:23 PM - Forum: General Coding Help - Replies (3)

Hope this tag thing works.
So I had this program working as a stand alone but now I'm trying to turn it into reusable functions.
It keeps telling me I..... More

Print this item

  change timing on py script
Posted by: kwfreverie - Dec-16-2017, 07:06 PM - Forum: General Coding Help - Replies (2)

I'm not a coder, but trying to learn. So please bear with me if I'm not expressing myself clearly.

I have two 2.7 .py scripts. One logs into a go..... More

Print this item

  Debuger help
Posted by: jarrod0987 - Dec-16-2017, 06:28 PM - Forum: General Coding Help - Replies (5)

I have been playing with idle a few weeks now. Mostly just learning python basics.
I would like to be able to use the debuger. I watched a few short ..... More

Print this item

  Unit 18: Procedural Programming Assignment (Shop Simulation)
Posted by: shaheduk323 - Dec-16-2017, 06:00 PM - Forum: Homework - Replies (28)

Unit 18: Procedural Programming Assignment (Shop Simulation)

Specification

The company are involved in several innovative projects and are curre..... More

Print this item

  Errors in my encryption algorithm
Posted by: SlimeBOOS - Dec-16-2017, 05:18 PM - Forum: General Coding Help - Replies (1)

So.. I wanted to make an algorithm that would encrypt the name of a file. AND I DID IT... i think , because sometimes when i run the algorithm to decr..... More

Print this item

  programming assignment
Posted by: mario - Dec-16-2017, 04:13 PM - Forum: Homework - 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

  Searching for someone to help with python
Posted by: PythonStats - Dec-16-2017, 03:49 PM - Forum: Jobs - Replies (1)

I am looking for someone who can create a visualization of the macd on specific data.

Will pay for it.

For more details please PM.

Greetings ..... More

Print this item

  Correct way to import from a standalone module in a different location
Posted by: chowder - Dec-16-2017, 03:24 PM - Forum: General Coding Help - Replies (3)

Hello everyone.

I have the following setup:

  • 3 separate AWS Lambda functions, written in Python
  • A small Flask app to test and run th..... More

Print this item

  Sort a list that is embedded
Posted by: Whisper40 - Dec-16-2017, 03:20 PM - Forum: General Coding Help - Replies (3)

Hello, i'm on a personnal project whose objective is to sort a list by name and not by first name.
However i have to keep the couple "name-firstname"
..... More

Print this item

  Noob Needs Help with almost finished script will pay
Posted by: dirty794 - Dec-16-2017, 03:00 PM - Forum: Jobs - Replies (12)

I have a Program that a friend made me and it has stopped working im just getting into python so I need help. I am willing to pay for your time. it cu..... More

Print this item

  2.7.8 Python installation error
Posted by: Benjipincus - Dec-16-2017, 01:46 PM - Forum: General Coding Help - Replies (2)

Hi all,
Cannot install Python 2.7.8 for Mac OS
It says "cannot install software because there is no software found"
please help to assist me with t..... More

Print this item

  Noobie Question, Libreries on Intellij
Posted by: donjon - Dec-16-2017, 01:20 PM - Forum: General Coding Help - Replies (2)

Hi there. I take an online Python cours and I am having a problem downloading new libreries.

[Image: fy5m7.jpg]

As ..... More

Print this item

  Importing pygame Mac problem
Posted by: Benjipincus - Dec-16-2017, 12:36 PM - Forum: Game Development - Replies (1)

I am having a problem installing pygame. I currently have a Mac and I am using Python 2.7.14. I installed pygame-1.9.1release-python.org-32bit.py2.7-m..... More

Print this item

  TypeError: len() of unsized object in Python Extreme Learning Machine (ELM) package
Posted by: Summer - Dec-16-2017, 11:41 AM - 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

  ImportError: No module named '_sqlite3'
Posted by: armanmax11 - Dec-16-2017, 11:09 AM - Forum: Web Scraping & Web Development - Replies (5)

Whenever i'm importing sqlite3, it give an import error. Can anyone tell me how to import sqlite3 for python3. Apart, im using cent os 6.5 on my vps...... More

Print this item

  How many money in 30 days.
Posted by: miguelramos122 - Dec-16-2017, 11:05 AM - Forum: General Coding Help - Replies (4)

[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

  Set attribute to a value CSR
Posted by: Samsar - Dec-16-2017, 10:41 AM - Forum: Data Science - Replies (1)

Im asked to write a clss SparseMatrix with an __init__ method which uses a numpy.array as matrix input and which generates an internal representation ..... More

Print this item

  Newbie question for complicated namedtuple generation
Posted by: zydjohn - Dec-16-2017, 09:50 AM - Forum: General Coding Help - No Replies

Hello:
I have some code by hand:
[python]
import collections
listA = [ 1.1, 1.2, 1.3, 1.4, 1.2, 1.1, 1.0, 1.1, 1.2, 1.3 ]
listB = [-1.0,-1.1,-1.2..... More

Print this item

  Which version of python goes well with tkinter?
Posted by: mgtheboss - Dec-16-2017, 09:29 AM - Forum: GUI - Replies (19)

Hi,

Before I get started, I would like to admire the efforts of forum admins, moderators, and members for their excellent contributions in maintainin..... More

Print this item

  Trying to find a more cpu effecent way of doing this.
Posted by: rawrmonster - Dec-16-2017, 06:51 AM - Forum: General Coding Help - Replies (8)

[python]
def KillProcess(list):
while(True):
for program in list:
for proc in psutil.process_iter():
if p..... More

Print this item

  TypeError: '>' not supported between instances of 'str' and 'int'
Posted by: dadler1217 - Dec-16-2017, 05:22 AM - Forum: General Coding Help - Replies (1)

I'm having some trouble with this code:

def is_hot (N):
if N<2:
return ("cold")
elif is_hot(N/2) > 1 or is_hot(N-1) > 1:
..... More

Print this item

  [split] mods gone
Posted by: Larz60+ - Dec-16-2017, 05:01 AM - Forum: Board - Replies (2)

Looking in that thread, it just made me realize that Ichabod hasen't logged in since October.

Print this item

  PyGame Nibbles tutorial for beginners.
Posted by: Windspar - Dec-16-2017, 03:04 AM - Forum: Tutorial Requests and Submissions - Replies (3)

I would have summit this in tutorial request and submission. There is no post thread there.

First thing. Build a boiler plate. Opens ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  If I open a file write or... 10 hours ago Pedroski55 bowlofred General Codin...
  a function to watch files Yesterday, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... Yesterday, 02:57 arbiel Pedroski55 General Codin...
  Exponential Number Conver... 01-09, 20:47 Tuurbo46 DeaD_EyE General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
Most views
  The best Prog... 580754
  Tutorial Requ... 522352
  Web Scraping ... 442921
  New Users Int... 388187
  Newbie with P... 387142
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+ 12117
buran 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
zaasheytop3010 Today
Avigma Today
alexfox Yesterday
zalexisshulzeo8879 Yesterday
SUMIATI Yesterday

User Panel Messages

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