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,265
» Latest member: Rerus3700
» Forum threads: 38,788
» Forum posts: 175,851

Full Statistics

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

Latest Threads
Access keys and values fr...
Forum: General Coding Help
Last Post: noisefloor
26 minutes ago
» Replies: 1
» Views: 20
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:07 PM
» Replies: 2
» Views: 111
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 71
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 69
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 321
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 48
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 82
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 289
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 152
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 255

 
  Detect comments part using web scraping
Posted by: seco - Jan-18-2018, 08:06 PM - Forum: Web Scraping & Web Development - Replies (7)

Hi
I'm following this tutorial to scrape Ajax comments section from a website https://likegeeks.com/py[url=https://python-forum.io/thread-7639.html]..... More

Print this item

  General advice web application
Posted by: Ramzi - Jan-18-2018, 05:36 PM - Forum: Web Scraping & Web Development - Replies (3)

Helo, I'm considered an intermediate in python and I would like to ask on how to build a website like Reddit which is made of python ? Are there any c..... More

Print this item

  UnboundLocalError, how to fix it please?
Posted by: etrius - Jan-18-2018, 04:09 PM - Forum: General Coding Help - Replies (4)

Hello, i'm facing a problem with python, i'm actually using the 2.6 version one because the scripts have been made for it, the 3.4 kept talking about ..... More

Print this item

  Morse Code Practice Script
Posted by: sparkz_alot - Jan-18-2018, 03:56 PM - Forum: Code sharing - Replies (14)

I created this script for myself which I thought I would share for those interested in learning or improving their Morse Code skills. I have not inclu..... More

Print this item

  Output formatting
Posted by: Steffenwolt - Jan-18-2018, 03:47 PM - Forum: General Coding Help - No Replies

Hello Helpers,
I made (partly copied) a script that gathers data from a MCP3008.
It loops as often as there are active MCP channels; in this case 0,..... More

Print this item

  GradientBoostingClassifier and hashed values
Posted by: metalray - Jan-18-2018, 03:27 PM - Forum: Homework - Replies (2)

Hi,

I noticed that my GradientBoostingClassifier treats my hash content as values and not
as class. Why would that be?


[python]test_df['agenc..... More

Print this item

  calling ".sql" files in python
Posted by: raopatwari - Jan-18-2018, 03:21 PM - Forum: General Coding Help - Replies (3)

Hello Python gurus,
I have sql file, in that
I have some commands like set echo on, set feedback on
and drop table, create table and inserts
and..... More

Print this item

  changing value and rerunning the code
Posted by: Arifattal - Jan-18-2018, 03:03 PM - Forum: General Coding Help - Replies (5)

i need this for something else i am working on, so i added it into a more simple code,
what i am trying to do is tell the code that if self.w(the thir..... More

Print this item

  Error: ValueError: could not convert string to float: 'L200 1.6 D/C'
Posted by: Jaarroy - Jan-18-2018, 01:18 PM - Forum: Data Science - Replies (2)

Hi guys, I need help trying to use Python to predict if a customer is going to leave the company.

When I try to fit the Random Forest, it says a Va..... More

Print this item

  Web scraping
Posted by: BoiledGoose - Jan-18-2018, 12:31 PM - Forum: Web Scraping & Web Development - Replies (4)

I would like to make simple script that returns 0 when server is offline and 1 when server is online, using web scraping. From that webpage "http://te..... More

Print this item

  Problem reading from serial
Posted by: python_beginner - Jan-18-2018, 12:05 PM - Forum: General Coding Help - Replies (5)

Hello, I'm new in python. I use an Arduino to sensing, and I wrote a small python program to read the data from usb. I use Python 3.5. The program is ..... More

Print this item

  How Can I Resolve This Error
Posted by: JayJayOi - Jan-18-2018, 10:47 AM - Forum: Homework - Replies (10)

Hi, I am currently trying to code for this particular question which is
Uncle Tim started his Secondhand Bookstore in 2000. As years passed, the num..... More

Print this item

  Run python script
Posted by: AndyDD_UK - Jan-18-2018, 10:41 AM - Forum: General Coding Help - Replies (8)

Hi

Newbie here. I have searched for this but cannot see an answer, apologies if I've missed something...

I'm currently learning python but am ru..... More

Print this item

  printing strings on same line..
Posted by: anna - Jan-18-2018, 07:55 AM - Forum: General Coding Help - Replies (3)

[python]import re
with open("svlan.txt") as svlan_file:
svlan_values = set(svlan_file.read().lower().split())

with open("e320configuration.t..... More

Print this item

  Django sending messages from third-party email
Posted by: sonic911 - Jan-18-2018, 07:52 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello!
I'm a little bit stucked with sending django email messages. My purpose is to send email from third-party email f.e user@site.com. I don't thi..... More

Print this item

  Pytest-html hook help
Posted by: flashnet1 - Jan-18-2018, 07:00 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi there,

I discovered pytest-html and using it as is, and it seems very nice and helpful.

I need to add a sorted column to it's report, and I j..... More

Print this item

  condensing try except
Posted by: mepyyeti - Jan-18-2018, 06:39 AM - Forum: General Coding Help - Replies (6)

There must be a way to achieve this type of code. As it is its violating everything about DRY...


also is there any way to condense try except sta..... More

Print this item

  import not working properly
Posted by: mepyyeti - Jan-18-2018, 05:24 AM - Forum: General Coding Help - Replies (5)

So I am having difficulty import my files. I can import standard library modules with 0 problem
import foo does not work b..... More

Print this item

  Program: ticket_check()
Posted by: Truman - Jan-17-2018, 11:49 PM - Forum: Homework - Replies (1)

Call ticket_check() function with 2 arguments: section and seats requested and return True or False
section is a string and expects: general, flo..... More

Print this item

  Program: shirt order
Posted by: Truman - Jan-17-2018, 11:22 PM - Forum: Homework - Replies (5)

Instructions:
First get input for color and size
White has sizes L, M
Blue has sizes M, S
print avaiable or unavailable, then
print the o..... More

Print this item

  Help me make my looper/synth
Posted by: ZipSnipe - Jan-17-2018, 10:44 PM - Forum: General Coding Help - No Replies

Hello I am on my 3rd week of learning Python2.7 and I am making a portable looper/synth that runs on Raspberry pi3 using a 16 button matrix from Adafr..... More

Print this item

  Using dictionary to login
Posted by: captainflint - Jan-17-2018, 09:58 PM - Forum: Homework - Replies (2)

I need a help because of my project.I have 2 usernames and 2 passwords.But ı can not combine them.Also, I'm new so, ı have to use elemantry or basic c..... More

Print this item

  need method to look up dictionary key by value
Posted by: league55 - Jan-17-2018, 09:51 PM - Forum: General Coding Help - Replies (3)

This is a little class I'm playing around with:

[python]from string import printable
from random import choice

class Anagram:

def __init..... More

Print this item

  Connecting to an online database
Posted by: MilkWaffler - Jan-17-2018, 09:41 PM - Forum: General Coding Help - No Replies

Is there any way to make it so a Login program can connect to a online database (Obvibase in this case) and check if the entered username and password..... More

Print this item

  pronterface on 3.5 " LCD
Posted by: tony1812 - Jan-17-2018, 09:33 PM - Forum: GUI - No Replies

Hello, I am pretty new to python. I use a pi3 to connect to my 3D printer, I insalled proterface on it, It works find on HDMI.screen Now I have a 3.5..... More

Print this item

  Union of dictionaries (taking max value on collision)
Posted by: meee - Jan-17-2018, 08:26 PM - Forum: General Coding Help - Replies (5)

[align=left] i need to write a program that takes two dictionaries and returns their union my problem is that if key is found in both, the larger va..... More

Print this item

  listdir trouble
Posted by: Dixon - Jan-17-2018, 08:18 PM - Forum: General Coding Help - Replies (1)

import os
def rename_files():
    list = os.listdir(r'C\Users\Public\Tyrell\Tyrrell')
    print (list)

I get nothing to print..... More

Print this item

  jobs section
Posted by: metulburr - Jan-17-2018, 08:11 PM - Forum: Board - Replies (6)

The jobs sections has gotten some borderline spam VS advertisement.

We were discussing the possibility of removing it or restricting the content i..... More

Print this item

  ModuleNotFoundError
Posted by: amalik - Jan-17-2018, 07:36 PM - Forum: General Coding Help - Replies (1)

I am new to Python. I am trying to run a python code and getting the following error:

from absl import app

Module not found.


How can I get ..... More

Print this item

  Doubt about which web server to use
Posted by: FelipeTE - Jan-17-2018, 06:49 PM - Forum: Networking - Replies (1)

Hello to all of You.
Mostly, but not only, what I search here is your expertise.
Some explanation ...
I'm at the moment creating a system and I..... More

Print this item

  issues with name color?
Posted by: friskisan - Jan-17-2018, 06:21 PM - Forum: General Coding Help - Replies (5)

hey! im using renpy if anyones familiar with it to code my game, and i typed in this thread: define m = Character("Mothman”, color=“#3e2a54”). i keep ..... More

Print this item

  Picking A number of items from a dict and getting there info
Posted by: TFish - Jan-17-2018, 05:31 PM - Forum: General Coding Help - Replies (2)

What i want to do it take a certain number of foods and take them and there values and print the values out.


[python]foods = {"Dempsters Whole ..... More

Print this item

  snake game quit() ^ SyntaxError: invalid syntax
Posted by: arti - Jan-17-2018, 05:22 PM - Forum: General Coding Help - Replies (1)

[python]
import random
import curses

s = curses.initscr()
curses.curs_set(0)
sh , sw = getmaxyx()
w = curses.newln(sh, sw, 0, 0)
w.keypad(1)..... More

Print this item

  Remote control of the Visual Studio 2013 debug menu using Python
Posted by: MariusTo - Jan-17-2018, 04:58 PM - Forum: General Coding Help - No Replies

I want a modality to control the debug menu from Visual Studio IDE on the same machine using python script.

For example:
-ADD BREAKPOINTS
-STEP INTO
..... More

Print this item

  Problem reading entry box in thread
Posted by: LeeMadeux - Jan-17-2018, 02:41 PM - Forum: GUI - Replies (2)

Good Morning,

I am new to Python. I am trying to build a program that reads a temperature from an Entry widget once every second and performs an ac..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Access keys and values fr... 26 minutes ago Winfried noisefloor General Codin...
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
Most views
  The best Prog... 579024
  Tutorial Requ... 510888
  Web Scraping ... 442030
  Newbie with P... 386070
  New Users Int... 377485
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Rerus3700 Today
pas88 Today
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday

User Panel Messages

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