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,988
» Latest member: markwood955
» Forum threads: 38,736
» Forum posts: 175,578

Full Statistics

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

Latest Threads
Weird failure in Selenium
Forum: General Coding Help
Last Post: glestwid
55 minutes ago
» Replies: 0
» Views: 12
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
2 hours ago
» Replies: 1
» Views: 46
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
7 hours ago
» Replies: 3
» Views: 2,524
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 2
» Views: 79
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 6
» Views: 183
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,043
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 457
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,086
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,157
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 837

 
  Good Morning help simplify
Posted by: raymond2688 - Jul-17-2019, 01:43 PM - Forum: Homework - Replies (3)

I was to create a program so I can compare the cost of fuel per vehicle I was wanting to purchase. I was able to get it to work but I think it can be ..... More

Print this item

  TypeError: '(slice(None, None, None), 0)' is an invalid key
Posted by: zaki424160 - Jul-17-2019, 12:03 PM - Forum: Data Science - Replies (1)

I am doing feature selection using python 2.7, the dataset was loaded fine but when i run the code it gives me this error
[python]
#!/usr/bin/env p..... More

Print this item

  Pynput doesn't recognize shift button and special characters
Posted by: VirtualDreamer - Jul-17-2019, 11:55 AM - Forum: General Coding Help - No Replies

Hello fellow Python programmers! I'm creating a keylogger using Pynput library(not for malicious purpose of course) and I'm having a hard time figurin..... More

Print this item

  Issues in Chat App for Local Network
Posted by: iMuny - Jul-17-2019, 11:53 AM - Forum: Networking - Replies (2)

Dear All

I hope everyone is doing well. Below is the code for a rudimentary chat app. The server side seems to be working fine but the client side ..... More

Print this item

  How to make a walljump + move between rooms ?
Posted by: dMn420 - Jul-17-2019, 11:32 AM - Forum: Game Development - Replies (1)

I've searched and nothing seemd to work. I will copy all the code, becuse there is no much of it and you can check it yourself if you need.
If you kn..... More

Print this item

  Switching between two frames using Tkinter
Posted by: jenkins43 - Jul-17-2019, 10:34 AM - Forum: GUI - Replies (1)

Hi, I am trying to switch from one frame to another, I tried to

.destroy()
method but I am facing some error

I have created the L..... More

Print this item

  Need help asap
Posted by: lucaaa_s02 - Jul-17-2019, 08:35 AM - Forum: General Coding Help - Replies (1)

I am trying to make a whole panel of LED to light up using a pressure-sensitive device. And get bluetooth from another rasberry pi using python. I hav..... More

Print this item

  Read a remote text file
Posted by: Sandy7771989 - Jul-17-2019, 07:16 AM - Forum: General Coding Help - Replies (1)

Hi All,

I have a scenario where i need to read a TEXT file(log.txt) in a remote server(Server 1) and write the read data to a database of another s..... More

Print this item

  Learning Python in a month
Posted by: MuhammadNauman - Jul-17-2019, 07:10 AM - Forum: General Coding Help - Replies (1)

Hello Folks,
I hope you guys are doing great.
This is my first post in the forum.
I have started the blockchain programming in python ..... More

Print this item

  Handling IO Error / Reading from file
Posted by: Expel - Jul-17-2019, 03:18 AM - Forum: Homework - Replies (10)

I need to read numbers from a txt file
cal the avg of these numbers
then handle any IO error exceptions that are raised when the file is opened and ..... More

Print this item

  How do I edit saved Python 3 script?
Posted by: Mocap - Jul-17-2019, 03:09 AM - Forum: General Coding Help - Replies (1)

I know this is probably a simple fix but I'm having a tough time with it. I'm being told that Python isn't installed on my computer when I open the fi..... More

Print this item

  Using tkinter on Windows to launch python 3 scripts
Posted by: Mocap - Jul-17-2019, 02:52 AM - Forum: GUI - Replies (1)

I'm trying to use tkinter to create a button that launches the relevant python script. I've never done this before and I saw someone else asking it, b..... More

Print this item

  List comprehension
Posted by: Uchikago - Jul-17-2019, 02:46 AM - Forum: General Coding Help - Replies (3)

Please explain why this doesn't work

seq=[1,2,3]
def a(): return x+2
x=[a() for x in seq]
I thought a list comprehension create a..... More

Print this item

  Verilog HDL Programming to Python Programming?
Posted by: noobcoder - Jul-17-2019, 12:35 AM - Forum: Homework - Replies (1)

Hello guys. I'm a college student and I'm a total newbie at programming. So apparently based on what I've researched, the following can only be done u..... More

Print this item

  for / else not working in interactive mode
Posted by: Skaperen - Jul-17-2019, 12:24 AM - Forum: General Coding Help - Replies (4)

this little test script works:
[output]lt2a/phil /home/phil 137> cat try.py
#!/usr/bin/env python3
a=[1,2,3,4,5,6]
b=[0,5,10]
for x in b:
if..... More

Print this item

  pip cache
Posted by: millpond - Jul-16-2019, 11:27 PM - Forum: General Coding Help - Replies (3)

I see that pip's cache in ~/cache/pip has a wheel and http directory. They take about 3 G which I would like to reclaim. They are in a dreadful numeri..... More

Print this item

  Algebric equation with Sympy
Posted by: pooyan89 - Jul-16-2019, 07:29 PM - Forum: Homework - Replies (3)

Hi !

I have two hard equations which I tried to solve them with a numerical value by using Sympy:

[python]from sympy import *
import sympy as ..... More

Print this item

Question python parser windows firewall log
Posted by: Jonub - Jul-16-2019, 06:35 PM - Forum: General Coding Help - No Replies

Hello
Sorry if my english is not good
I have two questions

I want enable windows firewal log whith python
Control Panel\All Control Panel Items\..... More

Print this item

  Looking for editor with drag & drop interface vs entering in individual lines of code
Posted by: yeto - Jul-16-2019, 03:52 PM - Forum: News and Discussions - Replies (1)

Hi,

Is there an editor that has more of a drag and drop interface versus entering in individual lines of code? Something along the lines of AutoHot..... More

Print this item

  Handle parameters in POST request for python webserver?
Posted by: JBristow1729 - Jul-16-2019, 03:26 PM - Forum: Web Scraping & Web Development - Replies (1)

I have a python webserver:

[python]
from http.server import HTTPServer, BaseHTTPRequestHandler

from io import BytesIO


class SimpleHTTPRequ..... More

Print this item

  Calling C functions with PyObjects
Posted by: jibarra - Jul-16-2019, 03:25 PM - Forum: General Coding Help - Replies (6)

I am using Python3.6:
[python]
[jibarra@redsky ~]$ python3.6
Python 3.6.8 (default, Apr 25 2019, 21:02:35)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)..... More

Print this item

  Pulling data from Sharepoint list
Posted by: gandiswapna0388 - Jul-16-2019, 02:49 PM - Forum: General Coding Help - Replies (1)

Hello There,
I'm very new to python and need little help in below.
Got a requirement to pull the data from share point list and writing it text file..... More

Print this item

  Parse using reg_ex
Posted by: UrsVinny - Jul-16-2019, 02:41 PM - Forum: General Coding Help - Replies (1)

Hi All
I am a newbie to python world and came across a situation where i need to pick value from a string based on certain patterns.
The dataset is ..... More

Print this item

  I can't uninstall chatterbot?
Posted by: Piethon - Jul-16-2019, 02:29 PM - Forum: General Coding Help - Replies (9)

Hello.

I've installed chatterbot. But now I don't need it anymore, so I wanted to uninstall it.
I've tried:

pip3 uninstall chatterbot

but th..... More

Print this item

  Nested Conditionals HELP
Posted by: absolum - Jul-16-2019, 02:04 PM - Forum: General Coding Help - Replies (4)

Hi All!
I am hoping to combine a series of conditions, and I need to find the cleanest possible setup. I have yet to find any that work. My current s..... More

Print this item

  Open unuploaded file
Posted by: bhojendra - Jul-16-2019, 01:12 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm using Flask and requests module. And I'm trying to use post request:

[python]
file = request.files['file']
files = {'file': open(file.filename)}
..... More

Print this item

  Is there a way to save a CSV file as a python object
Posted by: amjass12 - Jul-16-2019, 11:06 AM - Forum: Data Science - Replies (4)

Hi all,

I was wondering if there is a way to save a CSV file as a python object in order to be read in to python quicker. The reason I am cocnerne..... More

Print this item

  Need to generate random numbers
Posted by: Gateux - Jul-16-2019, 09:45 AM - Forum: General Coding Help - Replies (8)

Hi I am trying to generate a random sequence of numbers base on user input but right now I only know of this code:

[python]
import random
def mai..... More

Print this item

  return statement usage
Posted by: SB_J - Jul-16-2019, 09:12 AM - Forum: General Coding Help - Replies (3)

Hello!

1)

def square(x):
    return(x*x)
print(square(4))

2)[python]
def square(x):
print(x*x)
square(4)
[/pyth..... More

Print this item

  The following script works but I need to take it one step further to milliseconds.
Posted by: yeto - Jul-16-2019, 08:43 AM - Forum: General Coding Help - Replies (1)

[python]import schedule
import pyautogui

def job():
pyautogui.click()

schedule.every().day.at("04:39:03").do(job)

while True:
s..... More

Print this item

  decomposition library
Posted by: Scott - Jul-16-2019, 06:27 AM - Forum: Data Science - Replies (8)

Hi everyone,

I am trying import lib

from decomposition.base_class import BaseDecompositionClass
I am getting the following e..... More

Print this item

  How do I sum instance attributes?
Posted by: pythonprogrammer - Jul-16-2019, 03:33 AM - Forum: General Coding Help - Replies (9)

Say I have a bunch of instances of a class and one of the attributes below is the salary for every player. How would I calculate the sum of the salary..... More

Print this item

  typeerror, building histogram from data
Posted by: newatpython11 - Jul-16-2019, 03:05 AM - Forum: Homework - Replies (7)

I am trying to run a code to build histogram from a list of data and keep getting the below error :

[error]TypeError: list indices must be integers o..... More

Print this item

  Lambda function
Posted by: Uchikago - Jul-16-2019, 02:24 AM - Forum: General Coding Help - Replies (3)

Hi, i'm a bit confused with this code

x=10
x=lambda : x+2
print(x())
because the right side of the '=' is evaluated first so this..... More

Print this item

  Kindly explain this error
Posted by: BlackList96 - Jul-16-2019, 02:19 AM - Forum: General Coding Help - Replies (4)

I am a beginner in python programming. Kindly help me to sort out the error. When I write the below code in IDLE it is giving me the right answer. But..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Weird failure in Selenium 55 minutes ago glestwid glestwid General Codin...
  print does not open conso... 2 hours ago Tycho_2025 Axel_Erfurt General Codin...
  Fred Economic Data API 7 hours ago warrior42 Trickety Web Scraping ...
  create ocr to detect lice... 8 hours ago bimosora noisefloor General Codin...
  Parse Markdown / get the ... 8 hours ago SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577468
  Tutorial Requ... 501244
  Web Scraping ... 441090
  Newbie with P... 385158
  New Users Int... 369840
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
markwood955 Today
DerekGeel Today
Tycho_2025 Today
chikkamagalur Today
Costa Today

User Panel Messages

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