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,651
» Latest member: RaymondPAL
» Forum threads: 38,642
» Forum posts: 175,097

Full Statistics

Online Users
There are currently 372 online users.
» 0 Member(s) | 368 Guest(s)
Bing, Baidu, Yandex

Latest Threads
textbox compare command n...
Forum: GUI
Last Post: deanhystad
2 hours ago
» Replies: 1
» Views: 146
Python Install Mager Help
Forum: News and Discussions
Last Post: bowens1983
10 hours ago
» Replies: 2
» Views: 229
How to ask Smart Question...
Forum: Board
Last Post: Thatedge
Yesterday, 08:10 AM
» Replies: 3
» Views: 5,636
Exercise on reading a chu...
Forum: Homework
Last Post: polytrack
Yesterday, 06:49 AM
» Replies: 2
» Views: 1,029
New Users Introduce Yours...
Forum: Bar
Last Post: dmac6809
Jun-30-2025, 02:48 PM
» Replies: 451
» Views: 343,861
How to retain Annotation ...
Forum: Code Review
Last Post: holeioonline
Jun-30-2025, 08:43 AM
» Replies: 2
» Views: 911
Trading Bot written in Py...
Forum: News and Discussions
Last Post: LoriBrown
Jun-30-2025, 07:08 AM
» Replies: 4
» Views: 95,200
replace or remove text fr...
Forum: General Coding Help
Last Post: Curbie
Jun-29-2025, 06:53 PM
» Replies: 13
» Views: 632
locating a pushbutton py ...
Forum: GUI
Last Post: deanhystad
Jun-29-2025, 06:47 PM
» Replies: 2
» Views: 155
Difference and meaning in...
Forum: General Coding Help
Last Post: Gribouillis
Jun-29-2025, 03:41 PM
» Replies: 4
» Views: 215

 
  installing Linux on Flash Drive
Posted by: Larz60+ - Sep-15-2017, 09:38 PM - Forum: Bar - Replies (9)

I'm wondering if anyone has a Linux distro installed on a flash drive.
I'd like to set one up (got a bunch of 64GB drives at microcenter for 14.99 ea..... More

Print this item

  What am I doing wrong?
Posted by: forumer444 - Sep-15-2017, 08:39 PM - Forum: Homework - Replies (14)

This is driving me crazy.

*** Program Description ***
Write a program to read in a file of years, one per line, and output to a separate file "only t..... More

Print this item

  HELP---problems with rock paper scissors games
Posted by: kalt91 - Sep-15-2017, 04:25 PM - Forum: Homework - Replies (2)

Im having problems with the while loop terminating the rock paper scissors game once it gets to the choice variable to say no. Also when i initially e..... More

Print this item

  Expected an indented block
Posted by: Nicoles07 - Sep-15-2017, 03:43 PM - Forum: General Coding Help - Replies (2)

Hello I keep getting an error saying

Quote:Expected an indented block
but then i add an indentation and i get [quote]inconsistent use of tabs..... More

Print this item

  Searching for a website
Posted by: Ethan1745 - Sep-15-2017, 02:29 PM - Forum: General Coding Help - Replies (2)

So, I am looking for a website that tests students python abilities with multiple activities. It's called snakes or a variation of it, but I can't fin..... More

Print this item

  trouble with pip and py2exe
Posted by: sylas - Sep-15-2017, 02:03 PM - Forum: General Coding Help - Replies (12)

please give a runnable sample of your code with the full error text or a clear description of the problem..I copied the game pong on my project ping, ..... More

Print this item

  pandas dataframe
Posted by: ian - Sep-15-2017, 01:21 PM - Forum: Data Science - Replies (1)

I have a file Test.csv as below
ColumnA
FM
NA
EC

When run code below, it shows nan, not 'NA'. how to fix it? Thanks
FM
nan
EC

[python]
i..... More

Print this item

  Can I install Python 3.6.2 on Windows 10 for All Users?
Posted by: DAWO - Sep-15-2017, 11:48 AM - Forum: News and Discussions - Replies (1)

Hi,

We have Windows 10 laptops each with a local administrator account for our teachers, and one or more local standard user accounts for our stude..... More

Print this item

  Error connecting to client
Posted by: rajeev1729 - Sep-15-2017, 09:20 AM - Forum: General Coding Help - Replies (2)

[python]
from tkinter import *
from tkinter.ttk import *
import socket
import _thread

class ChatClient(Frame):

def __init__(self, root):..... More

Print this item

  location settings for Django Uwsgi Nginx Configuration for production
Posted by: sandyman - Sep-15-2017, 09:08 AM - Forum: Web Scraping & Web Development - No Replies

Django settings

STATICFILES_DIRS = [STATIC_DIR, ]
STATIC_DIR = os.path.join(BASE_DIR, 'static')
STATIC_ROOT = '/home/sandyman/production/django_p..... More

Print this item

  maximum lenght of a regex-match
Posted by: maashoeven - Sep-15-2017, 07:10 AM - Forum: General Coding Help - Replies (2)

You will see three snippets, first a part of my Python-code, second a part of the text the Python works on and third some printed results. Then I desc..... More

Print this item

  typeerror:byte like object is required
Posted by: rajeev1729 - Sep-15-2017, 05:59 AM - Forum: General Coding Help - Replies (1)

#server.py
[python]
import socket # Import socket module
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a socket object
host = soc..... More

Print this item

  While Loop; Can Else Point Back To Initial Input Command?
Posted by: RodNintendeaux - Sep-15-2017, 05:53 AM - Forum: Homework - Replies (9)

Guys and gals, I have lost my ever-loving mind. I was given a homework assignment (Intro to Python) and I have mostly figured this out, but I cannot g..... More

Print this item

  Ugh, Someone Went and Implemented Case
Posted by: ichabod801 - Sep-15-2017, 05:33 AM - Forum: News and Discussions - Replies (2)

reddit

..... More

Print this item

  Change Windows Sound Output Device with Python
Posted by: delfar - Sep-14-2017, 11:11 PM - Forum: General Coding Help - Replies (1)

Hey there,

On my main PC I have several different sound output devices that I have to constantly switch between. This process is tedious, as I have..... More

Print this item

  thread in python3
Posted by: tony1812 - Sep-14-2017, 10:49 PM - Forum: General Coding Help - Replies (1)

helo, I am very new to python, I am wonder in python3, is ther a differt between import threading verses import _thread? I've seen one or the other in..... More

Print this item

  Auto increment in Python Sqlite3
Posted by: kingram - Sep-14-2017, 10:07 PM - Forum: General Coding Help - Replies (1)

Hi. I want to set my id auto increment in sqlite3 in python 3.6

When i run my code i get this error:

[error]sqlite3.OperationalError: near "AUT..... More

Print this item

  JSON to sql(lite)
Posted by: BeerLover - Sep-14-2017, 09:07 PM - Forum: General Coding Help - Replies (3)

Dear all,

(Note: I don't have technical background Sad )
 
I have a big json file (Twiitter tweets), 2.6 GB. I need to work with that data an..... More

Print this item

  Getting EOF error with pexpect
Posted by: jjwstevenson - Sep-14-2017, 08:52 PM - Forum: General Coding Help - Replies (5)

Hi, I'm working on a script to;

log into a network device > get info of the interfaces > apply interface specific config.

This code works fine o..... More

Print this item

  Var Not defined
Posted by: RainbowWolfy - Sep-14-2017, 08:07 PM - Forum: General Coding Help - Replies (2)

So I'm pretty new to Python, although I got alot of experience in other languages.
I have a problem where my Attack variable is not being defined

..... More

Print this item

  Basic algebra in Python
Posted by: ejj28 - Sep-14-2017, 03:35 PM - Forum: General Coding Help - Replies (10)

Hi, how can I solve algebraic equations in python?
For example: 100*X=200, which would return 2.
Is there some sort of library for this?
Thanks!

Print this item

  Need help figuring out Sprite.Group Collision code
Posted by: PySam - Sep-14-2017, 03:09 PM - Forum: General Coding Help - Replies (3)

OK, so in my "sim" I've managed to assign "cells" or agents to a sprite group, and plants (for cells to eat and obtain food) into another group. After..... More

Print this item

  pygame problem
Posted by: Yair - Sep-14-2017, 03:00 PM - Forum: General Coding Help - Replies (7)

this is my code:

[python]
import pygame



pygame.init()


display_width = 800
display_height = 600

gameDisplay = pygame.display.set_mo..... More

Print this item

  Python Coding HELP!
Posted by: Ravenstown - Sep-14-2017, 02:58 PM - Forum: General Coding Help - Replies (3)

NOOB to Python

I need some help to reduce the size of my code by adding a loop which iterates on the blanks- I have been working on this code for w..... More

Print this item

  [split] running .py files on Windows
Posted by: metulburr - Sep-14-2017, 02:50 PM - Forum: General Coding Help - Replies (7)

split from discussion https://python-forum.io/Thread-run-py-file-on-Windows

I dont mean to hijack but i kind of am doing it
[quote]From there, you..... More

Print this item

  Please help - Code was working!
Posted by: bm0899 - Sep-14-2017, 01:52 PM - Forum: Web Scraping & Web Development - Replies (3)

Please find attached a python script. It was script was working last week but it does not work any longer.

The script pulls out data from an intern..... More

Print this item

  run .py file on Windows
Posted by: aidanikuz - Sep-14-2017, 01:17 PM - Forum: General Coding Help - Replies (4)

Hello, so I just installed python and I wanted to test the program and stuff. so I made a simple test file, hello.py which has its own folder on my de..... More

Print this item

  Error while running python script to get pixel points from google static map image
Posted by: python_newbee - Sep-14-2017, 01:09 PM - Forum: Data Science - Replies (3)

Error while running python script to get pixel points from google static map image. I got the python script from https://stackoverflow.com/questions/5..... More

Print this item

  Is any super keyword like java
Posted by: rajeev1729 - Sep-14-2017, 11:07 AM - Forum: General Coding Help - Replies (2)

how to print "Calling parent method" using Child object.
[python]
class Parent: # define parent class
def myMethod(self):
print ('..... More

Print this item

  Basic Coding Slays College Girl
Posted by: AnjyilLee - Sep-14-2017, 08:41 AM - Forum: Homework - Replies (5)

It is 4:30 in the morning. Been up since 8am yesterday and been running on 2 hours of sleep, coffee, and a Monster energy drink. I've seen that you gu..... More

Print this item

  Module import error
Posted by: CoolSchoolBoy - Sep-14-2017, 05:32 AM - Forum: General Coding Help - Replies (2)

Hello All. Trying to load a module into python 3, it keeps giving me error:
__
>>> import chaos
Traceback (most recent call last):
File "<pyshell#..... More

Print this item

  Number of cmds inside subprocess
Posted by: pannis - Sep-14-2017, 05:08 AM - Forum: General Coding Help - Replies (5)

Hi, I am trying to run more than 5 or 6 shell commands from my pyhton script.

Currently my psuedo code is below.

[python]
try:
_ = subpro..... More

Print this item

  IndexError?
Posted by: OmarSinno - Sep-14-2017, 04:59 AM - Forum: General Coding Help - Replies (2)

import sys
a= int(sys.argv[1])
b= int(sys.arv[2])
c= int(sys.argv[3])
inorder = a<b<c or a>b>c
print(inorder)
Anyone can help..... More

Print this item

  [newbie] question on what to put in () on target.write
Posted by: MattSS102 - Sep-14-2017, 03:33 AM - Forum: General Coding Help - Replies (5)

#I know how to put in line1 variable on line 25 (target.write(line1)), however when I try to put line2 in it I get an error. The error is "function ta..... More

Print this item

  Geany frustration how to deal with tabs and spaces and CR
Posted by: mlytle0 - Sep-14-2017, 02:14 AM - Forum: General Coding Help - Replies (2)

Not having a code problem (yet)
If I use 'enter' to create a new line, it places a carriage return in there, code doesn't run. Trying not to use tab..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] textbox compare... 2 hours ago dmac6809 deanhystad GUI
  Python Install Mager Help 10 hours ago bowens1983 bowens1983 News and Disc...
  How to ask Smart Question... Yesterday, 08:10 metulburr Thatedge Board
  Exercise on reading a chu... Yesterday, 06:49 Nit_Picker polytrack Homework
  New Users Introduce Yours... 06-30, 14:48 Yoriz dmac6809 Bar
  How to retain Annotation ... 06-30, 08:43 srikrishnan holeioonline Code Review
  Trading Bot written in Py... 06-30, 07:08 Pizzlew LoriBrown News and Disc...
  replace or remove text fr... 06-29, 18:53 Curbie Curbie General Codin...
  [PyQt] locating a pushbut... 06-29, 18:47 arbiel deanhystad GUI
  Difference and meaning in... 06-29, 15:41 Udbytossen Gribouillis General Codin...
  While loop is terminating... 06-29, 06:19 jumpsworthnow Gribouillis Homework
Most views
  The best Prog... 572379
  Tutorial Requ... 485166
  Web Scraping ... 436908
  Newbie with P... 379749
  Thread remain... 351245
Most reputation
buran 581
snippsat 507
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+ 12068
buran 8173
snippsat 7341
deanhystad 6845
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
as1221 3
Newest members
RaymondPAL Today
mirabelmason132 Yesterday
bhawani Yesterday
william8644 Yesterday
bhugaloo Yesterday

User Panel Messages

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