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,256
» Latest member: TomTMH
» Forum threads: 38,782
» Forum posts: 175,832

Full Statistics

Online Users
There are currently 29 online users.
» 1 Member(s) | 24 Guest(s)
Bing, Google, Apple, Gribouillis

Latest Threads
[solved] re.split issue
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 7
» Views: 129
New to python and coding
Forum: Homework
Last Post: jefsummers
10 hours ago
» Replies: 6
» Views: 180
Please guide me to comple...
Forum: General Coding Help
Last Post: pbkurd
11 hours ago
» Replies: 0
» Views: 55
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 352
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 113
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 241
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 379
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 147
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,643
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 247

 
  Function for returning absolute numbers
Posted by: Ernstblack - Oct-02-2017, 04:27 PM - Forum: Homework - Replies (2)

Hi, I am just beginning to learn python, this was an exercise I got from a resource online and tried to solve.

The code below is supposed to take a..... More

Print this item

  help for python and cplex
Posted by: juniorcoder - Oct-02-2017, 04:13 PM - Forum: General Coding Help - No Replies

Hello everyone,
I have a model built on cplex but I want to call its solution to python . I applied template below; Can you tell me where I should in..... More

Print this item

  Project Euler
Posted by: nilamo - Oct-02-2017, 03:59 PM - Forum: Board - Replies (8)

Reference thread: https://python-forum.io/Thread-Multiples-of-3-and-5

The old forum had a Project Euler forum, do we want to do that again?  We can..... More

Print this item

  How do I print "string involved" if one or more of my variables are strings?
Posted by: Shellburn - Oct-02-2017, 02:44 PM - Forum: General Coding Help - Replies (3)

The below has no synthetical or static semantic errors in it, but does not run as expected. Namely, I want my shell to print "string involved" if the ..... More

Print this item

  Multiples of 3 and 5
Posted by: rachelrosemond - Oct-02-2017, 02:23 PM - Forum: General Coding Help - Replies (1)

I was attempting to solve a problem on this site

[quote]If we list all the natural numbers below 10 t..... More

Print this item

  WHILE LOOP in my program
Posted by: kurokszxcky - Oct-02-2017, 01:52 PM - Forum: General Coding Help - Replies (1)

[python]
!curl https://raw.githubusercontent.com/Micros...p_mean.csv -o mean_temp.txt

the_file = open("mean_t..... More

Print this item

  How to map character to integer in python
Posted by: rajeev1729 - Oct-02-2017, 01:27 PM - Forum: General Coding Help - Replies (1)

suppose we have one csv file containing 2*2 matrix like
Name Age Problem
Rajeev 30 Y
Kumar 32 N
Madan 31 Y
I want to convert Y to 1 and N to 0 into..... More

Print this item

Sad Python for LCD2USB
Posted by: Nier - Oct-02-2017, 12:59 PM - Forum: General Coding Help - Replies (1)

Hi all, i am using python 2.7 with synology ds110j. I installed an LCD2USB device and installed it with "easy_install" installed "lcd2usb" and "python..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [solved] re.split issue 4 hours ago paul18fr Pedroski55 General Codin...
  New to python and coding 10 hours ago lary_p jefsummers Homework
  Please guide me to comple... 11 hours ago pbkurd pbkurd General Codin...
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578936
  Tutorial Requ... 510285
  Web Scraping ... 441960
  Newbie with P... 385975
  New Users Int... 376896
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+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday
Jessicaadams Yesterday

User Panel Messages

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