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,548
» Latest member: GPX005631
» Forum threads: 38,664
» Forum posts: 175,205

Full Statistics

Online Users
There are currently 277 online users.
» 1 Member(s) | 270 Guest(s)
Apple, Google, Bing, Baidu, Yandex, Gribouillis

Latest Threads
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 3
» Views: 180
How to package code for d...
Forum: General Coding Help
Last Post: noisefloor
Jul-15-2025, 01:26 PM
» Replies: 1
» Views: 114
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 97
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,523
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 732
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,209
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 452
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 238
Unable to define function...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:26 AM
» Replies: 2
» Views: 102
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
Jul-14-2025, 10:14 AM
» Replies: 6
» Views: 705

 
  Django serve list-file
Posted by: foralobo - Oct-02-2017, 12:57 PM - Forum: Web Scraping & Web Development - Replies (4)

Hello to everyone,
is there some package for Django to list the files in a directory and return a template ready to view them?
I would like to get ..... More

Print this item

  Python error
Posted by: smham - Oct-02-2017, 10:46 AM - Forum: General Coding Help - Replies (2)

Here is file cluster.py
[python]from PIL import ImageDraw,Image
from math import sqrt
import random

def readfile(filename):
lines = [line f..... More

Print this item

  Handle 2 million rows return by oracle database
Posted by: purnima1 - Oct-02-2017, 10:01 AM - Forum: News and Discussions - Replies (5)

Hi All,

I have one query that needs to be called from python script. That query will return 2 million records.Is there any document in python which c..... More

Print this item

  KeyError
Posted by: linurandy - Oct-02-2017, 08:11 AM - Forum: Web Scraping & Web Development - Replies (8)

Hello to everyone, i am new on python and django and i have a problem. I have a view that returns network asset.
In other views with similar data work..... More

Print this item

  What role does module "sys" play in this code?
Posted by: Athenaeum - Oct-02-2017, 08:06 AM - Forum: General Coding Help - Replies (4)

Below is code that was part of an exercise I found online. I completed the exercise in a different way, but their solution involves importing the "sys..... More

Print this item

  where is FileNotFoundError at?
Posted by: Skaperen - Oct-02-2017, 06:51 AM - Forum: General Coding Help - Replies (4)

i got a traceback and error in 3.5.2 that said FileNotFoundError was not defined on an except FileNotFoundError: statement.  t..... More

Print this item

  Running Sql query stored in CSV file
Posted by: purnima1 - Oct-02-2017, 06:15 AM - Forum: General Coding Help - Replies (16)

Hi All,
I am developing one piece of code where I need to query oracle database and save result of query .

Query will be stored in CSV format a..... More

Print this item

  object of type ... has no len()
Posted by: smham - Oct-02-2017, 04:33 AM - Forum: General Coding Help - Replies (3)

I 'm working on machine learning.
Here is my class
[python]class bicluster:
def __init__(
self,
vec,
left=None,
..... More

Print this item

  How do I correct multiplication error? Greedy algorithm help
Posted by: student8 - Oct-02-2017, 02:16 AM - Forum: Homework - Replies (1)

I am writing a function using the greedy algorithm and with this algorithm the dollars must be converted to cents.

One of the values is 1.15, howe..... More

Print this item

  Search for duplicated files
Posted by: wavic - Oct-02-2017, 01:28 AM - Forum: Code sharing - Replies (11)

This is a short script I wrote just now to search for duplicated files. Since already I have no room in my disks
I am open to suggestions. I don't li..... More

Print this item

  there is no str.isspecial()
Posted by: Skaperen - Oct-02-2017, 12:08 AM - Forum: General Coding Help - Replies (14)

there is no str.isspecial() method that i can find. is there some short alternative?

Print this item

  Drag and drop converter
Posted by: Raures - Oct-01-2017, 07:44 PM - Forum: GUI - No Replies

Hello everyone. I've created another User Interface to Python converter (you can find the first one ..... More

Print this item

  Would Python be a good langue to write this program in?
Posted by: MikeLG - Oct-01-2017, 07:43 PM - Forum: General Coding Help - Replies (4)

Hi all,

I'm new to Python, but I do have mild experience coding in other languages. (Mainly Java.) I'm looking to build the following program:

A..... More

Print this item

  Error in my function
Posted by: zafraj1 - Oct-01-2017, 07:37 PM - Forum: Homework - Replies (3)

Hello everyone. I try to make o function which takes 2 strings, a word and a letter, and counts how many times there is the letter in the word. [b]Her..... More

Print this item

  [cx_Freeze] Build .exe they get more .py files, help needed !
Posted by: JamieVanCadsand - Oct-01-2017, 06:35 PM - Forum: News and Discussions - Replies (3)

Hey Programmers, Game Developers and Software Writers...

I know how i can build .exes from an simgle .py file, but now i want to know,
how i can ..... More

Print this item

  Python to Exe trouble (TKinter might be causing problems?)
Posted by: Bill - Oct-01-2017, 06:28 PM - Forum: General Coding Help - Replies (5)

I've been trying to convert this Python program into an exe file that can run on computers that don't have Python installed. I've tried pyinstaller, b..... More

Print this item

  [split] Delete Threads
Posted by: xBlackHeartx - Oct-01-2017, 06:12 PM - Forum: Board - Replies (4)

There really needs to be a way to delete your threads. I shouldn't even bother to post unless I can find that feature, since lacking that feature is a..... More

Print this item

  How to convert character to integer in python
Posted by: rajeev1729 - Oct-01-2017, 04:19 PM - Forum: General Coding Help - Replies (2)

age digonsis
32 M

Print this item

  Keep a file locked for the life of an application
Posted by: rachelrosemond - Oct-01-2017, 02:41 PM - Forum: General Coding Help - Replies (2)

Suppose I have a file I'm reading from and I want to keep it open for the life of the application, until the users quits. Using Python under Windows, ..... More

Print this item

  Concatenate Specific Cell Interval With Pandas
Posted by: vidividi12 - Oct-01-2017, 02:16 PM - Forum: Data Science - No Replies

I want to concatenate specific columns and rows of multiple excel file(Like first.xlsx[B13:D13] and second.xlsx[B13:D13]). How can I improve my codes ..... More

Print this item

  how to find a next prime number?
Posted by: iamyourfather - Oct-01-2017, 08:15 AM - Forum: Homework - Replies (2)

I have a question that makes me so confused ...
I have to complete 「nextPrime()」 function so that it will return the smallest prime number that is gr..... More

Print this item

  Identifying object types
Posted by: microphone_head - Oct-01-2017, 07:52 AM - Forum: General Coding Help - Replies (5)

Can anyone out there suggest a better way of using the "type" routine?

I am trying to improve my code by identifying errors. In addition
to ..... More

Print this item

  What the butt is MyProgramming lab asking me to do?
Posted by: masonmoore93 - Oct-01-2017, 06:31 AM - Forum: Homework - Replies (4)

The problem states: "Assume that credits is an int variable whose value is 0 or positive. Write an expression whose value is "freshman" or "sophomore"..... More

Print this item

  Reduced Moving Averages for time series Data
Posted by: shivam_hbti - Oct-01-2017, 05:00 AM - Forum: Data Science - No Replies

I am doing my analysis on time series data using Python. I am also interested in moving averages, to calculate moving averages for my target variable,..... More

Print this item

  Old School First Person Dungeon Crawler?
Posted by: xBlackHeartx - Oct-01-2017, 03:06 AM - Forum: Game Development - Replies (1)

Note that I haven't even started learning pygame yet. I haven't even really learned python well enough to actually make anything (mostly because I fou..... More

Print this item

  How to convert boolean "True" to custom string?
Posted by: student8 - Oct-01-2017, 01:36 AM - Forum: Homework - Replies (3)

I am trying to write a rock, paper, scissors function without using if statements, loops or lists
The function prompts the user for choice of player ..... More

Print this item

  Help with fibonacci sequence
Posted by: masonmoore93 - Sep-30-2017, 11:53 PM - Forum: Homework - Replies (2)

Here's the problem I'm tasked with:

"In the following sequence, each number (except the first two) is the sum of the previous two numbers: 0, 1, 1,..... More

Print this item

  python 3.4.3 Question a defining function
Posted by: student8 - Sep-30-2017, 11:14 PM - Forum: Homework - Replies (1)

Write a function in_out(xs,ys,side) that takes three numbers as input, where
side is non-negative. Here xs and ys represent the x and y coordinates o..... More

Print this item

  This is an open book home assignment but i really need your help
Posted by: Samiha - Sep-30-2017, 07:56 PM - Forum: Homework - Replies (3)

2.Consider the following statements.
*1 Class attributes are more suitable for sharing data across instances of a class as opposed to instance variab..... More

Print this item

  i don't understand how to use a variable outside of a function?
Posted by: Rius2 - Sep-30-2017, 07:49 PM - Forum: General Coding Help - Replies (6)

from this function:

def test(arg)
a = 0
if arg >3:
    a=1
return a
how do i use it in another function?:

[python]def main(..... More

Print this item

  Ho to check if string contains substring from list
Posted by: Rius2 - Sep-30-2017, 07:10 PM - Forum: General Coding Help - Replies (2)

i want to check if a string contains a substring from a list of string i provide, at the moment i am doing this:


[python] if..... More

Print this item

  making a program for counting
Posted by: hurmet - Sep-30-2017, 06:16 PM - Forum: Homework - Replies (8)

Can anyone help me make a simple program.
I want to make a program using while function to count how many bars of soap i have in rows. First row wou..... More

Print this item

  Libraries needed for python install?
Posted by: burvil - Sep-30-2017, 05:15 PM - Forum: General Coding Help - Replies (7)

I'm getting the following when trying to install Python 3.6.2 on RHEL 6.7/ CentOS 6.7:
[python]
Python build finished successfully!
The necessary b..... More

Print this item

  Namespace Packages
Posted by: jmj1970 - Sep-30-2017, 03:13 PM - Forum: General Coding Help - No Replies

I had a question regarding namespace packages:

https://packaging.python.org/guides/pack...-packages/

Let’s say I have several packag..... More

Print this item

  sudo apt Not Working
Posted by: Dacdiver - Sep-30-2017, 03:01 PM - Forum: General Coding Help - Replies (11)

Not sure this is the right place for this problem but it's where I thought was best. I'm relatively new to Python but did some programming in C+ many..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  gpiozero buttons stop wor... 6 hours ago duckredbeard deanhystad General Codin...
  How to package code for d... 07-15, 13:26 mayukun noisefloor General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
  RemoTe server operation w... 07-14, 10:14 mario17 snippsat General Codin...
  Qt Event Filtering 07-14, 09:36 deanhystad deanhystad GUI
Most views
  The best Prog... 572712
  Tutorial Requ... 485772
  Web Scraping ... 437165
  Newbie with P... 380134
  Thread remain... 351390
Most reputation
buran 581
snippsat 507
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+ 12072
buran 8174
snippsat 7352
deanhystad 6859
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
GPX005631 Today
sudhakar6387 Today
zhanglucasgab0 Today
ztaylortsz4693 Yesterday
Minoshegan Yesterday

User Panel Messages

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