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,413
» Latest member: speakingfever
» Forum threads: 38,827
» Forum posts: 176,055

Full Statistics

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

Latest Threads
Code failing to ask input...
Forum: Homework
Last Post: perfringo
2 hours ago
» Replies: 4
» Views: 405
Possible bug found, pleas...
Forum: General Coding Help
Last Post: Pedroski55
8 hours ago
» Replies: 12
» Views: 429
python re.finditer return...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 07:55 PM
» Replies: 1
» Views: 75
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Yesterday, 07:13 AM
» Replies: 6
» Views: 750
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,382
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Jan-02-2026, 12:38 PM
» Replies: 2
» Views: 504
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 16,691
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:52 AM
» Replies: 2
» Views: 529
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:47 AM
» Replies: 2
» Views: 480
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,286

 
  List with Random Numbers
Posted by: AnjyilLee - Oct-14-2017, 01:36 AM - Forum: Homework - Replies (5)

For my homework, I need to make a lottery number generator, a program that generates a 7 digit lottery number, each digit generated on their own and b..... More

Print this item

  zero or one argument
Posted by: Skaperen - Oct-14-2017, 12:55 AM - Forum: General Coding Help - Replies (7)

is there a way for a function to accept zero or one argument without using variable arguments?

Print this item

  Homework Forum
Posted by: ichabod801 - Oct-14-2017, 12:41 AM - Forum: Board - Replies (17)

Lately there have been several posts in the Homework forum where the students are under significant restrictions about how to get the task done. Some ..... More

Print this item

  Problem with adjusting graph label
Posted by: ekansh - Oct-13-2017, 10:32 PM - Forum: Data Science - No Replies

I want to plot the content of csv file using python to the graph which is being plotted has got the values of x-axis go out of the image and also over..... More

Print this item

  Database for a College or School
Posted by: nexusfactor - Oct-13-2017, 10:18 PM - Forum: Bar - Replies (2)

While working on a task today, my brain was occupied by another task that I'm not quite sure how to solve. Either I'm trying to do too many things wit..... More

Print this item

  Have a specific app need but new to Python and Have some questions
Posted by: shelzmike - Oct-13-2017, 09:12 PM - Forum: Web Scraping & Web Development - Replies (2)

Hey all. I am new to Python for the most part. I do have OpenHAB running some home automation at my house that uses a few, somewhat simple, python scr..... More

Print this item

  Xpath queries
Posted by: sairam132033 - Oct-13-2017, 08:34 PM - Forum: General Coding Help - Replies (6)

Hello

I am able to write some python code, including functions. Thanks for the help

I want to write xPath Queries using Python. I need to analyz..... More

Print this item

  XML log file --> CSV
Posted by: olivercfc - Oct-13-2017, 08:23 PM - Forum: General Coding Help - Replies (1)

I'm trying to convert a log file to CSV and am stumped.

This is a representation of the real file. This would be two records and they're always se..... More

Print this item

  Fast Fourier Transform
Posted by: muhsin - Oct-13-2017, 07:38 PM - Forum: Data Science - Replies (1)

hello;
I have an acceleration-time history and I would like to generate single-sided fourier spectrum of it. Is there any packed code for it ? thank ..... More

Print this item

  Beginner
Posted by: willianramos - Oct-13-2017, 07:04 PM - Forum: General Coding Help - Replies (4)

Hi, I would like to know the error of this script.

salary = float(input("Enter your salary: "))
if salary > 2000:
gain = (salary + (salary * ..... More

Print this item

  Not Outputting
Posted by: goldtiger6 - Oct-13-2017, 06:42 PM - Forum: Homework - Replies (3)

PYTHON 3!!

I'm working on something for school and I can't figure out why my code is not printing "NO" or "YES" when the input is "2 2 2 5". I've tri..... More

Print this item

  Editting txt file
Posted by: muhsin - Oct-13-2017, 04:41 PM - Forum: General Coding Help - Replies (18)

hello,
I would like to separate the in txt file but there is no space between columns. I did not get how to upload the file. So i am going to put a s..... More

Print this item

  Hex code in a traceback
Posted by: insearchofanswers87 - Oct-13-2017, 03:36 PM - Forum: General Coding Help - Replies (6)

What does the hex code in a Python traceback mean?

For example, the following traceback is from accessing an out of bounds list index:

In [19]: ..... More

Print this item

  3D object modeling on Python
Posted by: samuelan - Oct-13-2017, 03:09 PM - Forum: News and Discussions - Replies (1)

Hello,
I need to start my python project, which is making a 3D object with polygon meshes by photogrammetry (taking pictures of the object in differe..... More

Print this item

  Code Review thread
Posted by: nexusfactor - Oct-13-2017, 02:38 PM - Forum: Board - Replies (2)

Is it possible for this forum to have a code review section? I hate to take away attention from someone seeking help when I've written code and need a..... More

Print this item

  Using openslide
Posted by: shivendra95 - Oct-13-2017, 02:34 PM - Forum: General Coding Help - Replies (5)

Can anyone help me with the package "openslide". I'm trying to import the package and want to output an image with .svs format. I have installed the p..... More

Print this item

  Output to excel
Posted by: Analyst - Oct-13-2017, 02:12 PM - Forum: News and Discussions - Replies (1)

Hi , After performing logistic regression , I want to export the confusion matrix to excel . Can anyone please suggest ?

Print this item

  Opinion on Python Security Books
Posted by: nexusfactor - Oct-13-2017, 02:08 PM - Forum: Bar - Replies (8)

I just missed out on the free e-book about Python penetration testing over on Packt Angry

Anyways, I just wanted to know, the book was printed ..... More

Print this item

  Issues with character conversion
Posted by: rexrf - Oct-13-2017, 02:03 PM - Forum: General Coding Help - No Replies

So I'm trying to learn python and I came up with an idea for a little program that reads a text file, converts all of the characters into pseudo-rando..... More

Print this item

  Trapezoidal integration method in python. Getting wrong results
Posted by: auting82 - Oct-13-2017, 12:40 PM - Forum: General Coding Help - Replies (5)

Hi, I am pretty new to Python so I want to appoligize ahead if my question is a bit silly.
I copied som finished code to test a well known numerical ..... More

Print this item

  How to read a file into a variable
Posted by: hello_its_me - Oct-13-2017, 12:38 PM - Forum: General Coding Help - Replies (2)

hi everyone, I am searching for a solution to read a number or a word into a variable out of a file and the other way round so to write a variable int..... More

Print this item

  Need Help about comboBox and lineEdit
Posted by: DeanONeil - Oct-13-2017, 03:47 AM - Forum: GUI - Replies (1)

Here is my script


from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_Main(object):
def setupUi(self, Main):
Main.setObjectName(..... More

Print this item

  t.fillcolor
Posted by: richard_sell - Oct-13-2017, 03:29 AM - Forum: General Coding Help - Replies (1)

please give a runnable sample of your code with the full error text or a clear description of the problem
I want to use colors in the order they are ..... More

Print this item

  Manual Sort without Sort function
Posted by: dtweaponx - Oct-13-2017, 02:04 AM - Forum: Homework - Replies (26)

Hello, I'm currently taking a python class, I really enjoy it but I'm having a issue with getting my code for a upcoming assignment to work. The teach..... More

Print this item

  Linking with multiple python libraries
Posted by: poijuggler - Oct-13-2017, 01:14 AM - Forum: General Coding Help - Replies (2)

I have a somewhat esoteric question, but hopefully someone with knowledge of the Python internals (CPython in particular) can answer this.

I'm work..... More

Print this item

  Upload file to Box
Posted by: skkuchipudi - Oct-12-2017, 11:43 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm trying to upload a csv file to Box via Mulesoft API, I can upload the file but only the file with last line, I can not upload full file. I ..... More

Print this item

  web scraper using pathlib
Posted by: Larz60+ - Oct-12-2017, 11:41 PM - Forum: Web Scraping & Web Development - Replies (1)

Ok, since DeaD_EyE introduced me to pathlib last night, I've been playing with it to get familiar with
it's capabilities.

I wanted to get a bunch ..... More

Print this item

  Lots of code. Creating modules
Posted by: jwhenson1990 - Oct-12-2017, 10:51 PM - Forum: Homework - Replies (2)

This is where I am trying to import the module. Having issues and have tried multiple things.
import geometry # my custom input module



..... More

Print this item

  code getting cut off
Posted by: Larz60+ - Oct-12-2017, 10:34 PM - Forum: Board - Replies (4)

I just noticed on a post that I just made, that certain lines are getting cut short:
Example: 'self.filelist = []'
[python]
self.filelist =
[/pyth..... More

Print this item

  Author class, with constructor validations
Posted by: nexusfactor - Oct-12-2017, 09:57 PM - Forum: General Coding Help - Replies (3)

[python]class Author:

def __init__(self, id, firstname, lastname):
self._validateid(id, "ID")
self._validate_author(firstname..... More

Print this item

  Hiding an executable?
Posted by: szoszme - Oct-12-2017, 09:12 PM - Forum: Homework - No Replies

Hello guys!

I would like to ask you something, because i cant understand this. I would like to run an .exe file from a python code, and the code on..... More

Print this item

  Peek preview of Firefox's WebRender
Posted by: Larz60+ - Oct-12-2017, 07:00 PM - Forum: News and Discussions - No Replies

Here is a preview of Firefox's new WebRender feature which is coming soon in the Firefox Quantum release:

https://hacks.mozilla.org/2017/10/the-who..... More

Print this item

  Python beginner: Weird Syntax Error
Posted by: mentoly - Oct-12-2017, 06:55 PM - Forum: General Coding Help - Replies (5)

Hello to all.

I need a quick and easy fix for my problem with Python error.

I'm just beginning coding, and I'm a little bit frustrated because i..... More

Print this item

  Get event details from eventful api
Posted by: Jon - Oct-12-2017, 06:54 PM - Forum: General Coding Help - No Replies

Im trying to use the eventful api to get information about music events (concerts) between two dates. For example I want to get the below information ..... More

Print this item

  Quiz using a csv
Posted by: zyn13 - Oct-12-2017, 06:25 PM - Forum: Homework - Replies (2)

I am currently in the process of making a quiz in Python, all the questions are stored in a csv database. I am having difficulty in having multiple an..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Code failing to ask input... 2 hours ago Phoenix_Narukami perfringo Homework
  Possible bug found, pleas... 8 hours ago Hassher Pedroski55 General Codin...
  python re.finditer return... Yesterday, 19:55 arbiel Gribouillis General Codin...
  sorting a lisr of file pa... Yesterday, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  a function to watch files 01-02, 12:38 Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help 01-01, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
Most views
  The best Prog... 580645
  Tutorial Requ... 521474
  Web Scraping ... 442877
  New Users Int... 387606
  Newbie with P... 387084
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+ 12117
buran 8197
snippsat 7398
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
speakingfever Yesterday
Saskia Yesterday
Frankbeamn 01-06
jemmee 01-06
Einhell 01-06

User Panel Messages

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