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,413
» Latest member: Saskia
» Forum threads: 38,826
» Forum posts: 176,046

Full Statistics

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

Latest Threads
Possible bug found, pleas...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 03:54 PM
» Replies: 8
» Views: 269
Code failing to ask input...
Forum: Homework
Last Post: noisefloor
Jan-05-2026, 08:12 PM
» Replies: 2
» Views: 355
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,357
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Jan-02-2026, 12:38 PM
» Replies: 2
» Views: 483
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 16,624
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:52 AM
» Replies: 2
» Views: 498
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:47 AM
» Replies: 2
» Views: 445
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,254
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 290
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,686

 
  Mastermind
Posted by: Davidlit95 - Oct-12-2017, 01:30 PM - Forum: Homework - Replies (2)

Im taking a basic python course in university and my class project is creating something like mastermind.

We have to create a program that guesses ..... More

Print this item

  I need Help in this problem
Posted by: Mostafa6687 - Oct-12-2017, 08:57 AM - Forum: Homework - Replies (2)

[size=medium]hello guys ,
actually I need some help to solve this problem by bython :

[b]Assume s is a string of lower case characters.

Write ..... More

Print this item

  MIMEMultipart instance has no attribute 'as_bytes'
Posted by: PeterJohnson - Oct-12-2017, 08:02 AM - Forum: General Coding Help - No Replies

I'm trying to send an e-mail with Python via gmail. I found this[/url[url=https://python-forum.io/thread-5589.html]..... More

Print this item

  Python BattleShips Random Ship placement
Posted by: FnaticPutin - Oct-12-2017, 07:35 AM - Forum: Game Development - Replies (2)

Hello. I recently started to code a battleship game in python and after debugging, I wanted to see if I could write a piece of code that places the sh..... More

Print this item

  set button background with image of window background
Posted by: gray - Oct-12-2017, 07:29 AM - Forum: GUI - Replies (3)

hello freinds
i have put an image (self.image) on my window background 
 now,
i need to put another image(mi_but1) on this window..
my problem:
i..... More

Print this item

  need help removing an item from a list
Posted by: jhenry - Oct-12-2017, 06:34 AM - Forum: Homework - Replies (4)

it is choice 7 if anyone can help it'd be appreciated
[python]import csv
import sys

#The password list - We start with it populated for testing p..... More

Print this item

  merge drawings
Posted by: chris64 - Oct-12-2017, 06:21 AM - Forum: General Coding Help - Replies (3)

I'm writing a program that makes a png file by combining two other png files.

It's joining them together but not quite the way I want it to. It joi..... More

Print this item

  function output
Posted by: student8 - Oct-12-2017, 04:10 AM - Forum: Homework - Replies (1)

I created a math question generator and I was wondering how do I make the function return the number of questions answered correctly?

For example (..... More

Print this item

  A couple of questions about pip install
Posted by: Athenaeum - Oct-12-2017, 01:40 AM - Forum: General Coding Help - Replies (3)

I am new to Python. At first I understood that packages are to be installed via the command prompt with [python] py -m pip install [package_name][/py..... More

Print this item

  1..2..3.. testing!
Posted by: JimmytheCool - Oct-12-2017, 01:10 AM - Forum: Bar - Replies (2)

Hi guys,

new to the forum. Testing to see if everything is working.

Cheers,

Jimmy Cool

Print this item

  Reading a text file
Posted by: fivestar - Oct-11-2017, 11:49 PM - Forum: Homework - Replies (7)

I have a text file of letters on 8 different lines. I want to read through the file and print out the length of every 2nd line of that file and store ..... More

Print this item

  forum motto / description
Posted by: metulburr - Oct-11-2017, 09:31 PM - Forum: Board - Replies (20)

I added a facebook plugin to handle the facebook graph so when you link this site, that little picture that is previewed in facebook gets added.
I w..... More

Print this item

  Cant find my problem ...
Posted by: papampi - Oct-11-2017, 08:28 PM - Forum: General Coding Help - Replies (5)

I cant find the problem
When the script should not write to output file it does

wtm.py
[python]#!/usr/bin/env python2.7
# _*_ coding: utf-8 _*..... More

Print this item

  Reaction tester syntax error
Posted by: Oli - Oct-11-2017, 07:08 PM - Forum: Homework - Replies (1)

[python]import random



def reactiontest():
print(random.randint(10,99)
start = time.time()
end = time.time()
ReactionTime = end-start
react..... More

Print this item

  TypeError: coercing to Unicode: need string or buffer, int found
Posted by: papampi - Oct-11-2017, 07:05 PM - Forum: General Coding Help - Replies (4)

I get error on this line of my the script

saveTopCoin(newProfits[0][0] + " : " + newProfits[0][1])
error :[python]
Traceback (most..... More

Print this item

  Python Project in NYC!! Developer Needed
Posted by: bschauer8 - Oct-11-2017, 07:02 PM - Forum: Jobs - No Replies

We are looking for a qualified Python Developer to work with our client Bank of America in NYC. This is a 18 month contract opportunity and job detail..... More

Print this item

  Sharing link to this site on FB
Posted by: gruntfutuk - Oct-11-2017, 05:54 PM - Forum: Board - Replies (21)

Every time I share a link to this forum on FB as a pointer to another help resource, Facebook renders a preview of the site that is rather odd:

[im..... More

Print this item

  Sr. Full Stack Developer (Python and Javascript)
Posted by: Chitra - Oct-11-2017, 04:55 PM - Forum: Jobs - No Replies

My name is Chitra, Customer Success Manager of Raasforce, a global talent marketplace powered by artificial intelligence that provide recruitment-as-a..... More

Print this item

  tweepy problem to to get a list of retweeters
Posted by: komarek - Oct-11-2017, 03:51 PM - Forum: General Coding Help - Replies (1)

so
i have a script that takes a timeline from user X and parse all his last tweets and print out a list of people that retweeted those tweets (for ea..... More

Print this item

  Saving an numpy.ndarray as .ply file in python
Posted by: Tina - Oct-11-2017, 03:13 PM - Forum: Homework - Replies (4)

hello,

I open an already existing .ply file and modify it in a loop working with the line in this file.
At the end, I have a numpy.ndarray that I ..... More

Print this item

  Django loading static files
Posted by: Dutchpy - Oct-11-2017, 03:03 PM - Forum: Web Scraping & Web Development - Replies (7)

I'm trying to load some CSS files but when I load the page it just shows the HTML.

Here is what my HTML file looks like:
https://imgur.com/a/48nkT..... More

Print this item

  Bingo Ticket Question
Posted by: Oli - Oct-11-2017, 02:12 PM - Forum: Homework - Replies (3)

Would anyone be able to help me out with this question I have been set, I am very new to Python and do not know much about arrays however I know that ..... More

Print this item

  Download file from Internet
Posted by: Tribunal - Oct-11-2017, 12:34 PM - Forum: General Coding Help - Replies (1)

Hello all,

I have a script I've been using for some time that was created by someone else (full script below). What I use it for is to connect to ..... More

Print this item

  Calling functions from another file
Posted by: jp2017 - Oct-11-2017, 10:33 AM - Forum: General Coding Help - Replies (11)

Hi,

I have two files and I want to call some functions from file A I have done it this way but is not working can someone please tell me what is th..... More

Print this item

  int() ValueError
Posted by: kcunning - Oct-11-2017, 09:41 AM - Forum: General Coding Help - Replies (1)

Very simple chunk of code:

ip = input("Enter #:")
ip = int(ip)
If I enter 2.3, why do I get:
ValueError: invalid literal for ..... More

Print this item

  Argparse
Posted by: niru - Oct-11-2017, 08:12 AM - Forum: General Coding Help - Replies (5)

[python]import argparse

parser = argparse.ArgumentParser()
parser.add_argument("-a", action="store_true", help="get anna's age")
parser.add_argum..... More

Print this item

  What am I missing/forgetting? ://///
Posted by: aksmlo - Oct-11-2017, 02:07 AM - Forum: Homework - Replies (5)

def tic_tac_toe(): board = [1,2,3,4,5,6,7,8,9]
end = False
win_combinations = ((0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1,
4, 7), (2, 5, 8), (0..... More

Print this item

  get state code, state name and state abbreviation
Posted by: Larz60+ - Oct-11-2017, 01:38 AM - Forum: Code sharing - Replies (4)

The following code will create a json file containing data for US states and possessions,
and presents a method for retrieving any missing two fields..... More

Print this item

  os.path.exists apparently doesn't always work!
Posted by: Larz60+ - Oct-10-2017, 10:10 PM - Forum: General Coding Help - Replies (2)

This code should sense that there is no data sub-directory,
and create it, but it doesn't on windows 7, but I swear it worked in the past.

I guess..... More

Print this item

  Password Saver Project
Posted by: jhenry - Oct-10-2017, 09:27 PM - Forum: Homework - Replies (15)

I'm having trouble with a project that I have to create a password saver for. I'm running into an indent error that I have no clue on how to fix. The ..... More

Print this item

  [Discord.py] Editing messages
Posted by: Ouindoze - Oct-10-2017, 07:28 PM - Forum: General Coding Help - Replies (4)

Hi, so i got this code, and i can't get it to modify the bot's own message, can anyone help me with this ?
I want it to, when somebody sends "_test" ..... More

Print this item

  Running Python via Anaconda?
Posted by: Athenaeum - Oct-10-2017, 07:13 PM - Forum: Data Science - Replies (14)

I am rather new to Python. I recently installed Anaconda, after I had already installed a regular Python command line. Anaconda came with many new p..... More

Print this item

  Python 2.x or Python 3.x
Posted by: phread - Oct-10-2017, 06:51 PM - Forum: News and Discussions - Replies (10)

I'm sure this discussion is in here somewhere, but I haven't found it. I'm learning Python and have seen a lot of older discussions about why it's a b..... More

Print this item

  Script works ok on windows but gives error on ubuntu
Posted by: papampi - Oct-10-2017, 05:52 PM - Forum: General Coding Help - Replies (3)

A friend of mine wrote this script for me :


[python]#!/usr/bin/env python2.7
import requests;
import json

# Configurable Variables

#Curr..... More

Print this item

  collosal cave python adventure
Posted by: rowan_hd - Oct-10-2017, 05:42 PM - Forum: Homework - Replies (3)

in this task that i have been set i have to recrate the 80s game colosal cave adventure but with learning python.
my code is this:
# collosal cave p..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Possible bug found, pleas... Yesterday, 15:54 Hassher noisefloor General Codin...
  Code failing to ask input... 01-05, 20:12 Phoenix_Narukami noisefloor Homework
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  a function to watch files 01-02, 12:38 Skaperen OtiliaGen News and Disc...
  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...
  Sorry Help 01-01, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
Most views
  The best Prog... 580613
  Tutorial Requ... 521237
  Web Scraping ... 442865
  New Users Int... 387520
  Newbie with P... 387082
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 7398
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Saskia Today
sellbot Yesterday
Frankbeamn Yesterday
jemmee Yesterday
Einhell Yesterday

User Panel Messages

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