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,942
» Latest member: Littlefish
» Forum threads: 38,723
» Forum posts: 175,514

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 41 Guest(s)
Bing, Google, AOL, Apple

Latest Threads
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: Anunderling
22 minutes ago
» Replies: 5
» Views: 167
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
54 minutes ago
» Replies: 0
» Views: 18
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,390
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 808
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,659
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,160
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,672
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,484
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,674
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,596

 
  beautiful soup - parsing scraped code in a script
Posted by: lilbigwill99 - Mar-09-2018, 03:10 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi, I'm currently working on a project that needs the price of an item at a certain date. using the bs4 module, I have parsed this code:

[python]
..... More

Print this item

  Looking for an Advice...
Posted by: zowhair - Mar-09-2018, 02:12 PM - Forum: General Coding Help - Replies (1)

Hi friends! I have learned very basics of python, and now I want to make software for windows and a website using python. Please give me a roadmap to ..... More

Print this item

  "³" math cube symbol encoding
Posted by: Ragnar - Mar-09-2018, 02:07 PM - Forum: General Coding Help - Replies (5)

Hello,

I am using the package pyuff to read a unv file.
I have the following error
[quote]UnicodeDecodeError: 'ascii' codec can't decode byte ..... More

Print this item

  serialize/deserialize data from/to json
Posted by: bb8 - Mar-09-2018, 12:35 PM - Forum: General Coding Help - Replies (1)

so i have some classes
[python]
class Record:
def __init__(self, a, b, c):
# a, b, c are strings
self.a = a
self.b = b
..... More

Print this item

  Cannot call main function but I don't know why
Posted by: eml - Mar-09-2018, 11:56 AM - Forum: General Coding Help - Replies (2)

I don't know why I get an error with this
It says main is not defined


[python]while True:
main ()

def main():
MainMenu = input("""Please s..... More

Print this item

  Currency formatting the third element in a 2D list
Posted by: RedSkeleton007 - Mar-09-2018, 10:46 AM - Forum: General Coding Help - Replies (3)

I've defined the third element in each list item as a float, but I want to convert them to currency format:

[python]
#!/usr/bin/env python3
#Sams..... More

Print this item

  Avoid output buffering when redirecting large data (40KB) to another process
Posted by: Ramphic - Mar-09-2018, 10:20 AM - Forum: General Coding Help - Replies (3)

I have following python script, which is multi-threaded and a C# script from which I call python code. The data outputted from python script is not ge..... More

Print this item

  Understanding "while True"
Posted by: RedSkeleton007 - Mar-09-2018, 09:58 AM - Forum: General Coding Help - Replies (2)

The following program works:

[python]
#!/usr/bin/env python3
#MovieList.py

def displayMenu():
print("COMMAND MENU")
print("list - Li..... More

Print this item

  can't understand why 'str' is passed as parameter
Posted by: uddhavpgautam - Mar-09-2018, 04:57 AM - Forum: General Coding Help - Replies (2)

Just want to know why str keyword is passed in isinstance() method?

[python]def to_str(data):
if isinstance(data, str):
return data
eli..... More

Print this item

  Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools
Posted by: rajeev1729 - Mar-09-2018, 01:00 AM - Forum: General Coding Help - Replies (2)

Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visua...uild-tools

Print this item

  Beginner class. Need help with some questions. Willing to pay
Posted by: curtice - Mar-08-2018, 11:40 PM - Forum: Homework - Replies (1)

I have some questions I need to answer. These questions are beginners but are confusing to myself. Willing to pay a little for helping answer all the ..... More

Print this item

  Python returns generator instead of None
Posted by: Tawnwen - Mar-08-2018, 10:33 PM - Forum: General Coding Help - Replies (4)

I have no clue why this is occurring. My class function isn't returning None regardless of how I write my code. Here's my search function below..... More

Print this item

  Using values from a list of tuples within a loop
Posted by: jtpy - Mar-08-2018, 10:17 PM - Forum: General Coding Help - Replies (5)

Hello Python forum!

I've been trying to solve this issue long enough to make want to seek help Smile

I've basically created a function tha..... More

Print this item

  Need Help with Start-up (DIY Beginer)
Posted by: Styles4gh - Mar-08-2018, 07:19 PM - Forum: General Coding Help - Replies (2)

Hi there,
I am new to programming and am teaching myself to program in python v3. I have set-up the pycharm editor and django framework on my PC. Am ..... More

Print this item

  if statement not working
Posted by: trent101010 - Mar-08-2018, 07:14 PM - Forum: General Coding Help - Replies (8)

Hi,
I'm trying to make a python game called Math God, which has three subjects:
1. Quadratics
2. Interest
3. Order of Ops.

I'm trying to make a..... More

Print this item

  Trouble deploying Django (project folder, wsgi.py and libapache2-mod-wsgi)
Posted by: Drone4four - Mar-08-2018, 06:30 PM - Forum: Web Scraping & Web Development - Replies (8)

I’m having some issues deploying Django.

Here is my site: https://daniel496.agency/

I’m running a Digital Ocea..... More

Print this item

  Python module for Router configuration parsing
Posted by: anna - Mar-08-2018, 06:02 PM - Forum: Networking - No Replies

please suggest me about python module for router configuration parsing from configuration file, routers like Cisco, huawei

would like to print Host..... More

Print this item

  ValueError: could not convert string to float: 'Pencil'
Posted by: Balakay97 - Mar-08-2018, 05:53 PM - Forum: Homework - Replies (3)

[python]def sortSales(filename):
with open(filename, 'r') as f:
f.readline() # skip header
d = {}
for line in f:
..... More

Print this item

  So Many Errors... No Way To Solve
Posted by: RhoJho - Mar-08-2018, 05:26 PM - Forum: Homework - Replies (4)

Hi there. New to the forum here. Taking a class on Python, using 3.6. I think many of the problems I keep running into in this class are that this ins..... More

Print this item

  Messy data to dict?
Posted by: ck3mp - Mar-08-2018, 05:11 PM - Forum: Web Scraping & Web Development - Replies (9)

Hello,

I have some data that is returned as part of a call to a website. I need to get the data into a CSV file ultimatly, but I cant currently get..... More

Print this item

  Threads and Event
Posted by: ricardons - Mar-08-2018, 04:22 PM - Forum: Data Science - Replies (1)

this is not working
I don't understand this threading.Event
what i am doing wrong?



[python]import threading
import numpy as np
from time im..... More

Print this item

  SQL code not working
Posted by: eml - Mar-08-2018, 04:05 PM - Forum: General Coding Help - Replies (1)

Hi
Please can someone help me spot the problem with this code:

[python]import sqlite3

conn = sqlite3.connect("Table example.db")
c = conn.cu..... More

Print this item

  pyuff
Posted by: Ragnar - Mar-08-2018, 03:53 PM - Forum: Data Science - Replies (4)

Hello,

I am a beginner with python and I would like to use the package pyuff to read some unv files using python3.

I try to use the examples h..... More

Print this item

  Need Help with this peace of code.PLease Exlain Each line of the code.
Posted by: AkashDubey - Mar-08-2018, 03:18 PM - Forum: General Coding Help - Replies (5)

[python]
#find sentences containing HTML tags
i=0;
for sent in final['Text'].values:
if (len(re.findall('<.*?>', sent))):
print(i)
..... More

Print this item

  Access the full list using an api that rather returns only a few elements
Posted by: bharath - Mar-08-2018, 02:15 PM - Forum: General Coding Help - Replies (1)

How do I access the full list defined in another function with an api call that rather returns only a top 10 elements that starts with a given sub-str..... More

Print this item

  Snow storm over - power back on
Posted by: Larz60+ - Mar-08-2018, 01:07 PM - Forum: Bar - Replies (4)

We had 2 feet of snow last night and about six power outages.
Oh what fun!

Print this item

  Can Python build graphical screens like this?
Posted by: wasa - Mar-08-2018, 12:15 PM - Forum: General Coding Help - Replies (1)

http://sumuditha-viraj.blogspot.com.au/2...tudio.html

Hello, can you tell us whether with Python we can develo..... More

Print this item

  Login Module Help - Comparing data in a text file to data held in a variable
Posted by: KeziaKar - Mar-08-2018, 11:41 AM - Forum: Homework - No Replies

[python]

def existingUser():
userID = input("Please enter your username: ")
password =input("Please enter your password: ")
for line..... More

Print this item

  parsing mutipart form data in Lambda
Posted by: v71017 - Mar-08-2018, 10:32 AM - Forum: General Coding Help - Replies (3)

I am working on developing an AWS Lambda function in python. This function is behind AWS API Gateway.
I upload two files from the URL and in lambda f..... More

Print this item

  ValueError: Attempted relative import in non-package
Posted by: JoeB - Mar-08-2018, 10:30 AM - Forum: General Coding Help - Replies (1)

There are answers here: https://stackoverflow.com/questions/1153...th-init-py but I don't..... More

Print this item

  Draughts
Posted by: SummBuddie - Mar-08-2018, 10:29 AM - Forum: Homework - Replies (2)

The program keeps resetting the Team and counter variables stopping the y team from playing.
[python]
import os
import sys

X_Team_lives = 12
Y..... More

Print this item

  facebook groups
Posted by: metulburr - Mar-08-2018, 10:19 AM - Forum: Bar - Replies (16)

I hate facebook groups in comparison to forums. The admins (or just regular people on a power trip) make some of the dumbest rules ever. Whereas forum..... More

Print this item

  ValueError: This COM object does not support events.
Posted by: meenakshi11 - Mar-08-2018, 09:42 AM - Forum: General Coding Help - No Replies

Hello all,
I am trying to access Canoe tool using python script. I want to call 'WithEvents' function to make event handler of COM object using pywin3..... More

Print this item

  smtpd or aiosmtpd
Posted by: Skaperen - Mar-08-2018, 04:10 AM - Forum: News and Discussions - No Replies

has anyone here used the smtpd or aiosmtpd modules? i am wanting to code up a receive-only email daemon (everything coming in will be stored to a fil..... More

Print this item

  reading all lines from a text file
Posted by: seadoofanatic - Mar-08-2018, 03:18 AM - Forum: Homework - Replies (2)

I am trying to create a function that reads each line from a .txt file. After reading all lines it should write the md5 hash value of each line/word t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Using a For Loop to subtr... 22 minutes ago Anunderling Anunderling General Codin...
  A coding beginner needs h... 54 minutes ago Littlefish Littlefish General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 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...
Most views
  The best Prog... 576512
  Tutorial Requ... 498443
  Web Scraping ... 440401
  Newbie with P... 384298
  New Users Int... 367450
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+ 12087
buran 8175
snippsat 7368
deanhystad 6892
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Littlefish Today
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday

User Panel Messages

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