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,933
» Latest member: bennyanderson482
» Forum threads: 38,721
» Forum posts: 175,503

Full Statistics

Online Users
There are currently 37 online users.
» 0 Member(s) | 30 Guest(s)
Bing, Google, Applebot, AOL, AOL, Internet Archive

Latest Threads
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Gribouillis
4 hours ago
» Replies: 2
» Views: 182
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 3,209
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,619
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 609
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 868
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,948
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 966
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 544
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,515
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,737

 
  Issue with If statement inside for loop
Posted by: Dotpy - Oct-12-2017, 02:49 PM - Forum: Web Scraping & Web Development - Replies (5)

Hey guys!

I've been working on this script for a few days now. What it's supposed to do is go to a real estate listing page click on a listing, the..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  C++ program embedding Pyt... 4 hours ago Alexandros Gribouillis General Codin...
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
Most views
  The best Prog... 576087
  Tutorial Requ... 497595
  Web Scraping ... 440038
  Newbie with P... 383811
  New Users Int... 366350
Most reputation
buran 581
snippsat 508
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+ 12089
buran 8174
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bennyanderson482 Today
AstoundzSEO Today
tobey12 Today
alexguemez Yesterday
Shadab Yesterday

User Panel Messages

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