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

Full Statistics

Online Users
There are currently 33 online users.
» 0 Member(s) | 26 Guest(s)
Bing, Google, AOL, Facebook, Facebook Dev

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

 
  Newbie question to find the seconds between now and midnight
Posted by: zydjohn - Dec-11-2017, 10:15 PM - Forum: General Coding Help - Replies (2)

Hello:

I need a function to tell me at now, if a specific market is open, if open return True, if not, return False.
There are 3 different markets..... More

Print this item

  Line by line execution
Posted by: Filthy_McNasty - Dec-11-2017, 10:01 PM - Forum: General Coding Help - Replies (1)

I have a script that does the job but only for one file. Just to explain what`s going on here:

 
[code]import sy..... More

Print this item

  Banners
Posted by: metulburr - Dec-11-2017, 09:45 PM - Forum: Board - Replies (5)

I added a banner plugin that allows you to plugin CSS easily and be able to flip with a switch them on or off.

Some are my maintenance banners
[at..... More


Attached Files

Thumbnail(s)
       
Print this item

  Maintenance Banner
Posted by: metulburr - Dec-11-2017, 09:43 PM - Forum: Board - No Replies

   

Quote:Reboot scheduled
This type of banner means there was a server update and the server needs to be rebooted. We are infor..... More


Attached Files

Thumbnail(s)
   
Print this item

  Cannot figure out what is wrong
Posted by: Korbrent - Dec-11-2017, 09:13 PM - Forum: Homework - Replies (12)

[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

  Django shop
Posted by: Larz60+ - Dec-11-2017, 08:27 PM - Forum: News and Discussions - Replies (2)

I was wondering if anyone has implemented a django shop, and if so, if they have some pointers on the best approach for doing this.

Print this item

  Newbie question for sorting named tuple list
Posted by: zydjohn - Dec-11-2017, 07:45 PM - Forum: General Coding Help - Replies (3)

Hello:
I have a simple question, the following is my code:
[python]
import collections
Person = collections.namedtuple('Person', ['Name', 'Age', '..... More

Print this item

  Python - Treasure Generator on 5x5 Board
Posted by: PhillySports124 - Dec-11-2017, 07:29 PM - Forum: Homework - Replies (2)

I was wondering exactly what would be the optimal format to setup a GenerateTreasure function. I already have a move player function in place around t..... More

Print this item

  discord bot (detect when someone types certain words)
Posted by: kikoko_2 - Dec-11-2017, 06:21 PM - Forum: General Coding Help - Replies (1)

[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

  Snake controls not working
Posted by: jakegold98 - Dec-11-2017, 06:00 PM - Forum: Game Development - Replies (5)

I have been following a class on udemy for pygame and were starting with this snake game. I get no errors but there has to be something I am missing i..... More

Print this item

  How do I convert my data so it works with Pandas?
Posted by: Oliver - Dec-11-2017, 04:09 PM - Forum: Data Science - No Replies

I was thinking of looking at linear regression for a set of error data. Then, be able to make a prediction what the error count might be in some futur..... More

Print this item

  Using SQLite - can't match my input password to the stored one
Posted by: KeziaKar - Dec-11-2017, 12:26 PM - Forum: Homework - Replies (2)

[python]
import sys
import sqlite3
#Program #1 - Main Page : Login or Register
#existingUser codes for a user that already has an account
def ex..... More

Print this item

  Learning python specific syntax after using other scripting languages for years
Posted by: Arcs - Dec-11-2017, 11:02 AM - Forum: Data Science - Replies (12)

Hello, I'm learning AI and if you're doing AI you need python it seems. I've long time used PHP, Javascript and occasionally bash for my job as a ful..... More

Print this item

  Custom text drawing.
Posted by: fableach - Dec-11-2017, 10:48 AM - Forum: General Coding Help - No Replies

Hellow there everyone!!
I'm new for here, I think this forum is very useful!!

well, I'm from Brazil and started to learn python a few months ago, ..... More

Print this item

  Volleyball game
Posted by: DrewD - Dec-11-2017, 05:34 AM - Forum: Homework - Replies (17)

I need to have user input scores for 5 volleyball games. The winner must score 25 points and win by 2. If the scores don't meet theses conditions, the..... More

Print this item

  PYSFTP - Password Change
Posted by: torz - Dec-11-2017, 02:32 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

  server reset loss data ~2 hours
Posted by: metulburr - Dec-10-2017, 11:22 PM - Forum: Board - Replies (8)

Reset server to ~2 hours ago due to messing up the server trying to get the mail server to work.

This means that new users who created an account ..... More

Print this item

  Homework-excercise
Posted by: gmit01 - Dec-10-2017, 08:13 PM - Forum: Homework - Replies (2)

Hi,
I'm a student to 1st semester and I have a problem to solve:
"Create a 5x5 random number table and calculate the sum of items per line, per column..... More

Print this item

  Why do floats get turned to scientific notation when used to populate an array?
Posted by: JoeB - Dec-10-2017, 05:47 PM - Forum: Data Science - Replies (2)

I am trying to populate an array with a data set of numbers that are imported as strings. I start by converting them to floats, and then put the float..... More

Print this item

Lightbulb Peewee returning objects and not strings..
Posted by: JerryMotov - Dec-10-2017, 04:36 PM - Forum: General Coding Help - Replies (2)

I want to get the data from my sqlite database using peewee
Currently I am trying to do this on this way:
[python]data_list = []
for email in C..... More

Print this item

  Screen printing on different threads
Posted by: MuntyScruntfundle - Dec-10-2017, 02:35 PM - Forum: General Coding Help - Replies (1)

Hi folks.

In a multi threaded app, how can I assure one 'print' command completes with a carriage return before another thread butts in and prints ..... More

Print this item

  Defining a Function
Posted by: mattt1998 - Dec-10-2017, 01:45 PM - Forum: General Coding Help - Replies (4)

I have this code that sorts a document according to the words it contains. There is a pythonic way of counting the files classified as "_fruit" and "_..... More

Print this item

  attempted multithread doesn't multithread
Posted by: meems - Dec-10-2017, 12:55 PM - Forum: General Coding Help - Replies (4)

[python]import threading,time

def simple_task(s):
      for j in range(5):
          print(s)
          time.sleep(0.5)

n=5
thread_list=[]
..... More

Print this item

  peewee.OperationalError: no such table:
Posted by: JerryMotov - Dec-10-2017, 10:27 AM - Forum: General Coding Help - Replies (3)

Python version: Python 3.6.3
I am using flask, peewee and sqlite

Hi, I am trying to connect my Python Flask application with a sqlite database.
..... More

Print this item

  Newbie question: how to generate dataframe and use multiple regression
Posted by: zydjohn - Dec-10-2017, 09:49 AM - Forum: Data Science - No Replies

Hello:
I have some code, which is not finished yet:
[python]
from scipy.stats import linregress

x0 = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
y = ..... More

Print this item

  Stack problem, repeating results that i dont want
Posted by: YapYL - Dec-10-2017, 08:24 AM - Forum: General Coding Help - Replies (1)

[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

  Transposing in Excel and converting to txt
Posted by: muhsin - Dec-10-2017, 07:52 AM - Forum: General Coding Help - Replies (2)

Hello;
I am a new user. I would like to automate a process that will save me a lot of time. In attached excel file I have some calculations of stress..... More


Attached Files

.xlsx   mean stress.xlsx (Size: 18.21 KB / Downloads: 598)
.txt   final output.txt (Size: 1.25 KB / Downloads: 623)
Print this item

  SOLVED: best way to block (wait on) shell calls to multiple windows programs at once?
Posted by: ezdev - Dec-10-2017, 06:42 AM - Forum: General Coding Help - No Replies

EDIT: turns out start (in windows) has a /wait option, which i can append to solve this. ive known start longer than ive known python, but i didnt kno..... More

Print this item

  The number of occurrences of statistical characters
Posted by: RobertW - Dec-10-2017, 05:58 AM - Forum: General Coding Help - Replies (3)

who can help me to resolve the question,thanks  Razz

[python]# -*- coding:utf-8 -*-
# python 3.x
import re

patter = [chr(i) for i in range..... More

Print this item

  script wanted: ping and wait
Posted by: Skaperen - Dec-10-2017, 05:16 AM - Forum: Bar - No Replies

the next script i want is a command that pings a specified host and waits until there are a specified number of good responses.  arguments/options to ..... More

Print this item

  FYI Pygame high cpu usage.
Posted by: Windspar - Dec-10-2017, 05:03 AM - Forum: Game Development - Replies (2)

It all depends what version of pygame you are using. I was using 1.9.3 whl.
I was getting 100% usage for a simple program.
This bug is known. [url=..... More

Print this item

  Limiting a Joystick value -1 to +1, to a value between 0 an 127 with 64 being center?
Posted by: japreja - Dec-10-2017, 04:00 AM - Forum: Game Development - Replies (2)

I am trying to limit a Joystick value, that ranges between -1.0 and +1.0, to a value between 0 and 127 with 64 being center. Any idea how to do this?..... More

Print this item

  Text Game Testing/Dev
Posted by: PKMindBlow - Dec-10-2017, 02:18 AM - Forum: Game Development - Replies (21)

Hey Guys!
I am PKMindBlow and I am currently working on a text game inspired by EarthBound and the Mother Series in general. It also uses some custom ..... More

Print this item

  Looking for offline BBCODE editor
Posted by: Larz60+ - Dec-09-2017, 11:08 PM - Forum: Bar - Replies (11)

I'd like to find an offline BBCODE editor, so that large textual based posts can be prepared offline.
[s]Preferably one that is stand alone, without ..... More

Print this item

  Newbie lambda question
Posted by: Truman - Dec-09-2017, 10:32 PM - Forum: General Coding Help - Replies (6)

I'm reading python tutorial and as an example of use of lambda there is this code:
[python]
pairs = [(1, 'one'), (2, 'two'), (3, 'three'), (4, 'four')..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 1 hour ago nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 3 hours ago Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 3 hours ago Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... 4 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... 578989
  Tutorial Requ... 510627
  Web Scraping ... 442002
  Newbie with P... 386031
  New Users Int... 377218
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
SledgeNE Today
nathanael Yesterday
JamesFalkner Yesterday
stevecoh1 Yesterday
Bamboo Yesterday

User Panel Messages

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