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,257
» Latest member: Bamboo
» Forum threads: 38,782
» Forum posts: 175,834

Full Statistics

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

Latest Threads
[solved] re.split issue
Forum: General Coding Help
Last Post: paul18fr
3 hours ago
» Replies: 8
» Views: 149
Please guide me to comple...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 1
» Views: 72
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 185
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 356
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 116
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 243
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 395
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 151
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,643
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 250

 
  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

  Save As redirect on Netork
Posted by: ArsirusUK - Oct-10-2017, 05:07 PM - Forum: Networking - Replies (2)

Hi I`m an Administrator in a School.
The kids in our School keep corrupting the programme.
This is because they are saving over keys files.
They ha..... More

Print this item

  Error with crawling site.
Posted by: jj2110 - Oct-10-2017, 04:11 PM - Forum: General Coding Help - Replies (3)

Hi I am getting the following exceptions when I am making a request to the following site.
URL: http://www.sec.gov/cgi-bin/browse-edgar?action=getcom..... More

Print this item

  Trying to create a BMI calculator Help!
Posted by: jamshaid1997 - Oct-10-2017, 03:44 PM - Forum: Homework - Replies (1)

[python]
name = ( input ('what is your name? '))
height = float( input ("What is your bodys height in meters?"))
weight = float( input ("what is th..... More

Print this item

  How about HTML/2
Posted by: wavic - Oct-10-2017, 03:29 PM - Forum: Networking - Replies (1)

The last tutorial in the Tutorials/Networking forum is why I am asking is Python HTML/2 compatible. What I am meaning... In HTML/2 a client can send m..... More

Print this item

  how to solve UserWarning
Posted by: rajeev1729 - Oct-10-2017, 02:01 PM - Forum: General Coding Help - Replies (2)

UserWarning: 'n_jobs' > 1 does not have any effect when 'solver' is set to 'liblinear'. Got 'n_jobs' = -1.
" = {}.".format(self.n_jobs))

Print this item

  Parameterized SQL query
Posted by: purnima1 - Oct-10-2017, 01:15 PM - Forum: General Coding Help - Replies (1)

Hi Experts,

I have one sql file(workphone.sql) which has one query written in that:

query >>


SELECT * FROM <TABLE_NAME> WHERE <COLUMN_NAME>=? AND..... More

Print this item

  an issue with bs4 scraping
Posted by: komarek - Oct-10-2017, 12:53 PM - Forum: Web Scraping & Web Development - Replies (5)

i have this script running on my raspberry that is scraping weather report from an url:
http://it.freemeteo.com/tempo/
this is the snippet of the we..... More

Print this item

  remove recovery page from boot raspbian
Posted by: gray - Oct-10-2017, 12:20 PM - Forum: GUI - Replies (1)

hello friends
how can i remove recovery page while booting raspbian(the page that has raspberry logo)???
i created a text file in the name of "autob..... More

Print this item

  python with arguments
Posted by: haye - Oct-10-2017, 11:35 AM - Forum: General Coding Help - Replies (1)

here's an example of what i would like to do

[python]
def infos():
print "His name is John, he is 24"
print "His name is Bra..... More

Print this item

  [split] merge/display values from two dictionaries
Posted by: ramkumar_70 - Oct-10-2017, 04:55 AM - Forum: General Coding Help - Replies (3)

I have the following problem:
I created two dictionaries

[python]province = {'onatario':'on', 'alberta':'ab', 'quebec':'qc', 'british_columbia':'b..... More

Print this item

  Are my descriptions (comments) correct here? [newbie needs help]
Posted by: MattSS102 - Oct-10-2017, 04:55 AM - Forum: General Coding Help - Replies (4)

I'm curious what the name of the "slots" are that I mentioned in my comments. These are slots in the function. There are two in the parentheses in thi..... More

Print this item

  unicode error message
Posted by: Skaperen - Oct-10-2017, 03:11 AM - Forum: News and Discussions - Replies (2)

i got this error message:

[inline]SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-9: illegal Unicode character[..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [solved] re.split issue 3 hours ago paul18fr paul18fr General Codin...
  Please guide me to comple... 4 hours ago pbkurd noisefloor General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578941
  Tutorial Requ... 510326
  Web Scraping ... 441963
  Newbie with P... 385981
  New Users Int... 376930
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+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Bamboo Today
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday

User Panel Messages

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