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,272
» Latest member: DataScientist071
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

Online Users
There are currently 25 online users.
» 1 Member(s) | 22 Guest(s)
Bing, AOL, anime

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 10:27 PM
» Replies: 3
» Views: 170
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 158
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 127
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 173
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 350
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 69
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 116
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 364
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 208
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 322

 
  Sorting end results
Posted by: acmichelman - Mar-04-2018, 10:39 PM - Forum: General Coding Help - No Replies

Im am creating a schedule maker and am having trouble sorting the end results in an easy to read format. It's only processing from 3 different lists. ..... More

Print this item

  John Guttag Python Book Finger Exercise 5
Posted by: pritesh - Mar-04-2018, 09:08 PM - Forum: Code sharing - No Replies

Hi,
Here's my way of taking a crack at the 5th Finger exercise in the John Guttag book - "Introduction to Computation and Programming Using Python wi..... More

Print this item

  TypeError: list indices must be integers or slices, not str
Posted by: TheDovah7 - Mar-04-2018, 08:27 PM - Forum: Data Science - Replies (4)

So I am new to python and I can't seem to find the error with this code, when I try to run I get the message "TypeError: list indices must be integers..... More

Print this item

  Looking for feedback on a game I made
Posted by: MrPucake - Mar-04-2018, 08:08 PM - Forum: Code sharing - Replies (7)

I'm a beginner python programmer and was looking for some feedback/improvements/criticism on a game I made. The game itself is a Pokemon-like turn-bas..... More

Print this item

  formatting string and returning as geojson
Posted by: garynobles - Mar-04-2018, 07:29 PM - Forum: General Coding Help - Replies (12)

I have records like this (I cannot alter the origional dataset). The Primary key is always 64 characters, followed by a 3 letter code, three sets of W..... More

Print this item

  Plotly Error
Posted by: muhsin - Mar-04-2018, 06:36 PM - Forum: Data Science - No Replies

Hello,
I am trying to smooth my data by getting some help online. I have created a code to filter data, but I believe since it is website based code..... More

Print this item

  Is there a problem with LONG_BIT in pyconfig.h ?
Posted by: DavidH - Mar-04-2018, 06:25 PM - Forum: General Coding Help - Replies (4)

Hi,

I am trying to make some code that I wrote in C++ available to me in Python. To do this, I am trying out pybind11. But I am running into a comp..... More

Print this item

  Even if my file is "main.py",cannot run my project
Posted by: sylas - Mar-04-2018, 06:20 PM - Forum: General Coding Help - Replies (13)

Hi all! When I am on the project, I cannot run it. Python says he does not find my "main" file.
Here is my main.py:
[python]if __name__ == '__main__..... More

Print this item

  FileNotFoundError when using subprocess
Posted by: dixitabhi - Mar-04-2018, 05:51 PM - Forum: General Coding Help - Replies (1)

from subprocess import check_output
output=check_output(["ls", "F:\myData\input"]).decode("utf8")
print(ouptut)
I'm trying to ru..... More

Print this item

  Windows server 2008 SP2 - Python cx_Oracle connection DLL error
Posted by: tpanagoda - Mar-04-2018, 05:44 PM - Forum: General Coding Help - Replies (2)

I have configured the Oracle client and try with the below code, But error prompted.

[python]
import cx_Oracle
connstr = 'sysadmin/abc1234@localh..... More

Print this item

  BAH! Need help with function!
Posted by: TimeForged - Mar-04-2018, 04:52 PM - Forum: Homework - Replies (3)

So I'm still working on this darn program lol, I got it to run but when I go to delete an item it's saying del_item is not defined but I'm confused be..... More

Print this item

  Str/Int variables
Posted by: SatuKuu - Mar-04-2018, 01:16 PM - Forum: General Coding Help - Replies (1)

I'm very beginner trying to learn to code and I'm stuck with this... I need to convert strings to integers (to use it in plots), but I want users to b..... More

Print this item

  Python Selenium (Dropdown-) data
Posted by: Robin_at_Cantelli - Mar-04-2018, 09:57 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

I want to change the currency (left upper corner) on the website https://www.bitstamp.net/. For example from BTC/USD to BTC/EUR to extract spec..... More

Print this item

  re , TypeError: unsupported operand type(s) for -: 'str' and 'str'
Posted by: steponesmall - Mar-04-2018, 09:11 AM - Forum: General Coding Help - Replies (1)

Hello

I scripted a car oil change app. it is working fine but i want to add condition that input must be numeric. I tried using 're'. But with my ..... More

Print this item

  Spyder : Clear IPython Console whenever I re-run the script
Posted by: smallabc - Mar-04-2018, 08:05 AM - Forum: General Coding Help - No Replies

As titled, how can I clear the IPython Console whenever I re-run the script using Spyder?

Thanks.

Print this item

  Question about an infinite loop
Posted by: Robo_Pi - Mar-04-2018, 04:45 AM - Forum: General Coding Help - Replies (6)

If I have a program that loops infinitely, should I place a return at the end of that program anyway?

Example:
[python]
def main():
while (T..... More

Print this item

  Refresh test in urwid.Text
Posted by: Stensborg - Mar-03-2018, 11:35 PM - Forum: GUI - Replies (1)

I am trying output some test to the screen, but I have to update the text when some external data changes.

So I made this test program, and even th..... More

Print this item

  Multiplication Recursive Solution - What's Going On Inside the Code?
Posted by: emerger - Mar-03-2018, 09:45 PM - Forum: General Coding Help - Replies (1)

Hello. Here is a block of code my instructor gave us to understand. It returns 12. I ask you: In the commented section at the bottom, do I have th..... More

Print this item

  Architecture for script executor
Posted by: marsokod - Mar-03-2018, 09:42 PM - Forum: General Coding Help - No Replies

I am working on a tool to execute python scripts for hardware test automation. I have a current workflow but that I feel that it is the wrong way of d..... More

Print this item

  Function to Continuasly monitor serial port and control other functions
Posted by: ricardons - Mar-03-2018, 08:33 PM - Forum: General Coding Help - Replies (10)

Hi

I need to built a pythonfile.py that starts to do a task (monitor at all time a serial port)
And when a certain condition is true(receive a cer..... More

Print this item

  how do you define Class in python ?
Posted by: volcano - Mar-03-2018, 06:57 PM - Forum: General Coding Help - Replies (6)

how do you define Class in python ?


class MyClass;

OR

class MyClass();

which one is correct ?

It seems I have seen both varieties ... hence conf..... More

Print this item

  return outside function?
Posted by: TimeForged - Mar-03-2018, 06:19 PM - Forum: Homework - Replies (6)

I have been battling with this code for like an hour lol. I have unindented, indented and now I'm on the error "Return outside of function". What am I..... More

Print this item

  Accessing data in zip - Index out of range
Posted by: pythoneer - Mar-03-2018, 05:13 PM - Forum: Homework - Replies (24)

i have 3 lists
[quote]Names=["Jack","Jeni","Monsa","Mehus","Kuis","Tim","Tony","Yestgf","Pere"]
Years=[17,20,26,40,67,88,96,99,37]
Order=[1,2,3,4,5,6..... More

Print this item

  image doesnt exists into personal module
Posted by: PyForIO - Mar-03-2018, 01:48 PM - Forum: GUI - Replies (4)

Hi all...

I create an interface tkinter, with python3. (3.6.2 on OpenBSD)

My folder:
[quote]
yup.tk.py
/modules/__init__.py (empty)
/modules/window..... More

Print this item

  Python3: problem to import personals modules
Posted by: PyForIO - Mar-03-2018, 01:12 PM - Forum: General Coding Help - Replies (2)

Hi, all.

I have a problem to import personals modules.

My folder:
[quote]
test.py
/modules/__init__.py
/modules/config.py
/modules/notif..... More

Print this item

  Script from flowchart
Posted by: ksopd - Mar-03-2018, 12:30 PM - Forum: Jobs - Replies (3)

Hello. Could someone write a script according to this flowchart? [Image: gFJ0sn]
The script should be written exacly as shown in flo..... More

Print this item

  Python find the minimum length of string to differentiate dictionary items
Posted by: zydjohn - Mar-03-2018, 11:06 AM - Forum: General Coding Help - Replies (3)

dTeamNames = {'A': 'Man City', 'B': 'Man United', 'C': 'West Brom', 'D': 'West Ham' }
Hello:
I have a dictionary contains a key..... More

Print this item

  where is the documentation for pyqt5 ?
Posted by: JackDinn - Mar-03-2018, 10:58 AM - Forum: GUI - Replies (10)

Im having a real hard time trying to learn pyqt5, i cant use http://doc.qt.io/qt-5 because its all in C++. I also see a lot of sourceforge links when ..... More

Print this item

  20 x 4 Line 2 scrolling text for LCD-I2C Display
Posted by: RoadieMunky - Mar-03-2018, 09:44 AM - Forum: General Coding Help - Replies (2)

Hello Everyone,
I am new to coding and the Raspberry Pi, and I hope you can help me out?
I have a code to display to an LCD-I2C 20x4 display but I w..... More

Print this item

  difference between word: and word[:] in for loop
Posted by: zowhair - Mar-03-2018, 06:48 AM - Forum: General Coding Help - Replies (2)

Hi Friends, I have some confusion in python kindly help me. What is difference between these two statements
[python]
word = ['xyz', 'dsddf', 'sdfs..... More

Print this item

  inserting photos in 1 sheet of a 6 sheet excel file fails
Posted by: Pedroski55 - Mar-03-2018, 01:53 AM - Forum: General Coding Help - No Replies

Hi, this is a weird one, but maybe someone has an inkling:

First of all: I am not good at Python, but have made it do what I want. openpyxl has a p..... More

Print this item

  Search for brazilian programmer in england
Posted by: jhonatanlteodoro - Mar-03-2018, 01:09 AM - Forum: Bar - Replies (1)

Procuro por brasileiros que estejam trabalhando e morando na Inglaterra, de preferência pela parte central.
Estou pesquisando sobre a área de program..... More

Print this item

  Converting handwriting into code that can be recreated
Posted by: kill3rcat456 - Mar-02-2018, 10:35 PM - Forum: General Coding Help - Replies (2)

Basically I am fairly new to python, but I want to make a program where I write (either with a touchscreen or a mouse) a message and then it appears o..... More

Print this item

  sklearn Polynomial Features Graphing
Posted by: pegn305 - Mar-02-2018, 10:22 PM - Forum: Homework - No Replies

Here is the code I have written so far:
[python]from sklearn.preprocessing import PolynomialFeatures
x=data['True Vertical Depth']
y=data['Cum Oil..... More

Print this item

  Cloud app development
Posted by: league55 - Mar-02-2018, 08:41 PM - Forum: GUI - Replies (1)

Is PyQt a good choice for cloud app development, or would a framework with its own GUI be better?

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... Yesterday, 22:27 Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 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... 579111
  Tutorial Requ... 511312
  Web Scraping ... 442068
  Newbie with P... 386136
  New Users Int... 378471
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 8196
snippsat 7389
deanhystad 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
DataScientist071 Today
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday

User Panel Messages

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