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,298
» Latest member: Divyakrishnan071
» Forum threads: 38,795
» Forum posts: 175,890

Full Statistics

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

Latest Threads
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
5 hours ago
» Replies: 3
» Views: 116
silent deployment Python ...
Forum: News and Discussions
Last Post: Bummibaer
5 hours ago
» Replies: 2
» Views: 80
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
9 hours ago
» Replies: 6
» Views: 3,182
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 249
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 133
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 94
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,526
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 180
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 84
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,157

 
  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

  coding help lists, loops, and if statement
Posted by: ilondire05 - Jul-16-2019, 02:02 AM - Forum: General Coding Help - Replies (5)

My problem asks me to write a program to find all the divisors of a number. What I have done so far I realize is of target from that goal however ther..... More

Print this item

  converting data sizes like: 4k, 32k, 4m, 16m, 1g, etc
Posted by: Skaperen - Jul-16-2019, 01:15 AM - Forum: Code sharing - No Replies

i had asked if there was a Python library function to do this, which i could not find. there was no answer, so i had to implement my own. this is no..... More

Print this item

  Looking for Eval alternative
Posted by: scionsamurai - Jul-16-2019, 12:24 AM - Forum: Data Science - Replies (2)

My goal is to put together a pandas column search function based on how many columns are present.
[python]
import pandas as pd

head_list = 'Segme..... More

Print this item

  Pandas converting date to epoch
Posted by: randor - Jul-15-2019, 10:40 PM - Forum: Data Science - Replies (2)

Hello all,

ok, this has stumped me for at least the last 6 hours and i am ready to pull what little hair i have left out!

I have a dataframe tha..... More

Print this item

  Christmas and other occasions
Posted by: GalaxyCoyote - Jul-15-2019, 08:02 PM - Forum: General Coding Help - Replies (4)

I am trying to make a program that can tell people the date and time (I have done this bit) but I want to add to the program, I want a way to detect t..... More

Print this item

  Mass-update pip pkgs
Posted by: mcmxl22 - Jul-15-2019, 07:58 PM - Forum: Code sharing - No Replies

Here is a program I wrote to mass-update pip packages. It relies on pip-review and another module I wrote to make numbered lists.

[python]
import ..... More

Print this item

  How to get a count of -Python- threads from the outside (or via code instrumentation)
Posted by: dstromberg - Jul-15-2019, 06:58 PM - Forum: General Coding Help - No Replies

  • Detailed description of your problem, including steps to reproduce it
This is more informational, than a problem.

I want some ..... More

Print this item

  Trying to make column based file from text file
Posted by: scor1pion - Jul-15-2019, 06:29 PM - Forum: General Coding Help - Replies (7)

Hello, I've been trying to learn python for one reason. I get a several hundred page report at work that looks like this:


RMDS1.GPCAN.* ..... More

Print this item

  Windows GUI with push buttons to launch python scripts
Posted by: drifterf - Jul-15-2019, 06:28 PM - Forum: GUI - Replies (7)

Hi, i have a project which works well but consists or a differnt script for what i want it to do. so i want to create a windows GUI so when a user pre..... More

Print this item

  writting python output to a csv file
Posted by: drifterf - Jul-15-2019, 06:20 PM - Forum: General Coding Help - Replies (1)

hi, i currently have a script that when a proximity fob is presented to the reader it displays the fob number (PIGPIO wiegand script on a raspberry pi..... More

Print this item

  ploting i,j,k,r,g,b data from file
Posted by: p222 - Jul-15-2019, 05:29 PM - Forum: Data Science - No Replies

Dear all,

I have this code working, which is giving me what I'm showing in the picture:

[python]
#!/usr/bin/env python
import matplotlib.pyplo..... More

Print this item

  Global variable does not seem to be global.
Posted by: Columbo - Jul-15-2019, 05:04 PM - Forum: General Coding Help - Replies (6)

I am trying to use a global variable which is then incremented in a function but I am getting this error:

File "E:\Python 3\Prehistoric Life\prehis..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My regex function is not ... 5 hours ago Moltar1997 perfringo General Codin...
  silent deployment Python ... 5 hours ago Bummibaer Bummibaer News and Disc...
  best way to learn python 9 hours ago dutch ichsanputr News and Disc...
  data fetching for indian ... Yesterday, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
Most views
  The best Prog... 579369
  Tutorial Requ... 512354
  Web Scraping ... 442280
  Newbie with P... 386334
  New Users Int... 380258
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+ 12110
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Divyakrishnan071 Today
ichsanputr Today
nicos18 Yesterday
Moltar1997 Yesterday
arthurlouiss Yesterday

User Panel Messages

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