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,421
» Latest member: zalexisshulzeo8879
» Forum threads: 38,829
» Forum posts: 176,075

Full Statistics

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

Latest Threads
If I open a file write or...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 3
» Views: 65
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
10 hours ago
» Replies: 3
» Views: 740
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Today, 02:57 AM
» Replies: 8
» Views: 491
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 441
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 798
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,747
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 718
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,031
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,612
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,371

 
  Problems with importing classes in different folder
Posted by: Xeraphim - Nov-08-2017, 07:43 AM - Forum: General Coding Help - Replies (3)

Hey guys

I try to reference the class Database in my unit test.
This is the first time I program with python so I hope I explain everything correc..... More

Print this item

  Not sure how to debug this?
Posted by: rsmldmv - Nov-08-2017, 04:48 AM - Forum: General Coding Help - Replies (3)

I'm trying to attach a screenshot to my post and can't a way to do this. Is this possible?

Thanks

Print this item

  Simple "Slot" Machine (Python 3)
Posted by: Prrz - Nov-08-2017, 04:45 AM - Forum: Code sharing - Replies (3)

Hello Python Forum, as a learning experience I created a very basic "Slot" machine. It's far from perfect and could definitely use many upgrades, more..... More

Print this item

  Website Javascript
Posted by: drunkenneo - Nov-08-2017, 04:26 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I am new to python,

There is a website where two text box are given, where you need to enter the start date and end date, and on clicking d..... More

Print this item

  NameError mlab not defined
Posted by: PythonAndArduino - Nov-08-2017, 04:04 AM - Forum: Data Science - Replies (5)

I wrote a program to analyze ECG rhythms. It works on my computer, but I emailed it to a friend for them to run it and suddenly it's saying that mlab ..... More

Print this item

  Can I upload a new version without previously deleting ancient version
Posted by: sylas - Nov-08-2017, 03:48 AM - Forum: General Coding Help - Replies (6)

Hi all ! Let us take two examples: Pycharm (versions 3.3 and 3.2) and python (version 3.3 and 3.2). Pycharm was installed passing via "software center..... More

Print this item

  Time limit and Score not working Coding help
Posted by: Kingrocket10 - Nov-08-2017, 02:46 AM - Forum: Game Development - Replies (1)

Hello I would like some help on my game. My Score and Time limit do not work at all so I would like help fixing that. The digits underneath the Time l..... More

Print this item

  Using asyncio to read text file and load GUI
Posted by: QueenSvetlana - Nov-08-2017, 02:39 AM - Forum: General Coding Help - Replies (1)

Goal: Using wxPython, load a combo box and read in a potentially huge text file to add to the list.

I have a text file with the names parsed..... More

Print this item

  Problem with "while and a string of characters
Posted by: Faosry - Nov-07-2017, 09:35 PM - Forum: General Coding Help - Replies (4)

Hi !

My python code :
[python]ligne1 = [2,0,1,5,1,1,5,1,4,0,1,1,2,4,5,3,1,4] # creation des tableaux
ligne2 = [0,0,0,5,1,2,3,..... More

Print this item

  What is wrong with code? Bin. Tree counting
Posted by: Peter_EU - Nov-07-2017, 09:17 PM - Forum: General Coding Help - Replies (3)

Hallowings,

I am having following code giving me errors. I see everything is all right and don't know why it does. Says smt. about formating, butt ..... More

Print this item

  Searching a text file to find words matching a pattern
Posted by: Micael - Nov-07-2017, 06:37 PM - 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

  Need Help With Python RPG Battle System
Posted by: SBanya - Nov-07-2017, 06:05 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I've been working on the StackSkills Python video course, and completed the RPG system video tutorial a while back. I have one part..... More

Print this item

  Need help in selenium
Posted by: Lizard - Nov-07-2017, 03:14 PM - Forum: Web Scraping & Web Development - Replies (1)

I need help
I want to scroll down my page so the page can be sumbitted
It seems that the page cannot view submit_input_id = "side-contact-submit" so..... More

Print this item

  Can't get .py to run on Win10 command line
Posted by: jonesin1974 - Nov-07-2017, 02:36 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm trying to run my python script from a Windows 10 command prompt (batch file).

It works if I'm in the correct directory of where my pytho..... More

Print this item

  get positive number from a list if there's the same number but negative
Posted by: haye - Nov-07-2017, 02:28 PM - Forum: General Coding Help - Replies (14)

list_one = [-8, 8, 144, 17]

def test(lis):
    return min(lis, key=abs)

print test(list_one)
Output:
-8
i want to print..... More

Print this item

  django rest framework - custom routes
Posted by: SparrowhawkMMU - Nov-07-2017, 11:36 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi there,

Firstly, I hope that this query is in the correct format, apologies if it breaks any forum guidelines - let me know and I'll amend it.
..... More

Print this item

  Unable to delete duplicates in excel with Python
Posted by: tysondogerz - Nov-07-2017, 07:13 AM - Forum: General Coding Help - Replies (2)

I am trying to delete duplicates but the job just finishes with an exit code 0 and does not delete any duplicates.

I have attempted to do this wit..... More

Print this item

  In Search of 3rd Party Proxy / IP Address Rotation Software
Posted by: bmccollum - Nov-07-2017, 05:12 AM - Forum: Web Scraping & Web Development - 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

  applying 2 conditions to a loop
Posted by: Pedroski55 - Nov-07-2017, 04:38 AM - Forum: General Coding Help - Replies (1)

SOLVED: I was trying
if maxScore == 'None':
continue

I needed to write

if str(maxScore) == 'None':
continue

The situation is this:

1. I am..... More

Print this item

  Can't change Right to left id spawning/ movement to top to bottom
Posted by: Kingrocket10 - Nov-07-2017, 03:58 AM - Forum: General Coding Help - Replies (3)

Ive been trying to change the way my yblocks in my game move, they go (right to left) at this point but I want them to move (top to bottom) but I can'..... More

Print this item

  Failed attempt to install pyserial
Posted by: skeeve - Nov-07-2017, 03:09 AM - Forum: General Coding Help - Replies (4)

I got pyserial-3.4.tar.gz from https://pypi.python.org/pypi/pyserial .
I untarred it.
As root, I changed to its directory and ran
python setup.py i..... More

Print this item

  on a system w/o python3
Posted by: Skaperen - Nov-07-2017, 01:29 AM - Forum: News and Discussions - Replies (23)

lots of my scripts work fine on python3.  a few even work better when run on python3.  only a few others need python2 and i hope to eventually recode ..... More

Print this item

  sniffing real time with pyshark or scapy
Posted by: jeanapala - Nov-06-2017, 11:43 PM - Forum: Networking - Replies (2)

Hello , i'am looking for a way to sniff the traffic in real time and save it on a cap file or csv so i can load it in logstash .
(i tried pyshark but..... More

Print this item

  Raspberry Pi 3 Machine output log
Posted by: Jordancantcode - Nov-06-2017, 10:49 PM - Forum: General Coding Help - No Replies

So far this is the code I've attempted
[python]
#!/usr/bin/python
import RPi.GPIO as g
import csv
import datetime
import time
output1 = '/home/..... More

Print this item

  Extracting random word from list
Posted by: zykbee - Nov-06-2017, 10:08 PM - Forum: General Coding Help - Replies (13)

I created a little program here, and I'm having trouble with this part ---
[python]
var1 = random.choice(ggg[0])
var2 = rando..... More

Print this item

  Issue with my first Python test.
Posted by: MattH - Nov-06-2017, 10:08 PM - Forum: Web Scraping & Web Development - Replies (1)

I apologise for asking silly questions. I should think I will look at this in a couple of months and laugh at myself.

So here it goes: I've starte..... More

Print this item

  List problem
Posted by: mp3909 - Nov-06-2017, 09:59 PM - Forum: General Coding Help - Replies (2)

Hi,

I need to write a program that will reverse the first k characters for every 2k characters.
If there are less than k characters left, reverse ..... More

Print this item

  How to call subprocess after for loop
Posted by: viru - Nov-06-2017, 07:45 PM - Forum: Data Science - No Replies

I have pyspark script like below. In this script, I am collecting stdout and stderr of the script in a file and storing in local.

In ..... More

Print this item

  How to measure an inclined beam width and height in image using python?
Posted by: zyb1003 - Nov-06-2017, 07:35 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

  New to Python, what now?
Posted by: MattH - Nov-06-2017, 07:02 PM - Forum: Web Scraping & Web Development - Replies (6)

Hey guys. I'm new to Python and this forum. I've been an SEO Expert for the past five years, but I want to spread my wings and make something beautifu..... More

Print this item

  SMBUS Support
Posted by: RWP - Nov-06-2017, 05:59 PM - Forum: General Coding Help - Replies (1)

I would like to transfer five integer values from Python to an Arduino using SMBus, but I have run into a lack of useful documentation on SMBus. The ..... More

Print this item

  [split] New at Python programming
Posted by: Akash - Nov-06-2017, 05:23 PM - Forum: GUI - Replies (1)

from tkinter import *
import random
import time

class val:
def __init__(self):
self.values=
self.index=0
def assign(self):
self.values.appen..... More

Print this item

  Login System
Posted by: ItsBlueey - Nov-06-2017, 04:57 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

  need help in optionMenu using tkinter
Posted by: Lizard - Nov-06-2017, 02:24 PM - Forum: GUI - Replies (4)

HI..I need help
I got a code which use optionMenu tkinder
the list is too long..It stretch from the full height of the screen

May i know how to l..... More

Print this item

  Extract value
Posted by: Schwarzschild - Nov-06-2017, 12:43 PM - Forum: General Coding Help - 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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  If I open a file write or... 4 hours ago Pedroski55 noisefloor General Codin...
  a function to watch files 10 hours ago Skaperen Skaperen News and Disc...
  python re.finditer return... Today, 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... 580736
  Tutorial Requ... 522176
  Web Scraping ... 442909
  New Users Int... 388023
  Newbie with P... 387130
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
zalexisshulzeo8879 Today
SUMIATI Today
starboy25 Today
zabenjamitop8877 Yesterday
zanaaliepetrovz6060 Yesterday

User Panel Messages

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