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,977
» Latest member: hoki1881
» Forum threads: 38,732
» Forum posts: 175,563

Full Statistics

Online Users
There are currently 42 online users.
» 0 Member(s) | 37 Guest(s)
Bing, Google, Applebot, Mojeek

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Today, 07:43 AM
» Replies: 2
» Views: 231
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Today, 12:21 AM
» Replies: 2
» Views: 863
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 05:45 PM
» Replies: 6
» Views: 910
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 602
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,950
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,365
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,944
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,372
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,283
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,614

 
  You can call a function without it's arg's?
Posted by: GrooTheWanderer - Apr-13-2019, 08:31 PM - Forum: General Coding Help - Replies (6)

Absolutely brand new to python.
Here is some code from a tutorial that works, I just don't understand why.
[python]
strs = ['xc', 'zb', 'yd' ,'wa']..... More

Print this item

  approximation
Posted by: mcgrim - Apr-13-2019, 08:22 PM - Forum: Data Science - Replies (10)

I am writing a function that approximates the natural logarithm function by using the following formula
under iteration:
a sub 0= (1+x)/2 b sub 0=..... More

Print this item

  sklearn regression to excel
Posted by: punksnotdead - Apr-13-2019, 07:39 PM - Forum: Data Science - Replies (1)

#I'm using the following to generate linear model coefficients
#I'm only showing some of the code here
#They print out OK in the DOS window

[pyth..... More

Print this item

  problem with complex number
Posted by: jodrickcolina - Apr-13-2019, 06:36 PM - Forum: General Coding Help - Replies (1)

I have a problem when I wanna work with complex number in python 3, the problem is that I do not know how to convert a string to "complex" when I save..... More

Print this item

  Need help understanding simple Array code. Please.
Posted by: stluwa - Apr-13-2019, 05:38 PM - Forum: General Coding Help - Replies (1)

[python]
import pandas
import numpy
dataframe = pandas.read_csv("C:\Users\stluwa\cars.csv")
array = dataframe.values
X = array[:,0:8]
Y = array[..... More

Print this item

  Server and Network (socket) [WinError 10053]
Posted by: SheeppOSU - Apr-13-2019, 02:40 PM - Forum: Networking - Replies (2)

I was watching a tutorial on using socket to create servers and connect clients to make a multiplayer game. The problem is I keep getting this error. ..... More

Print this item

  Simple Game - Choice Based
Posted by: theor - Apr-13-2019, 01:30 PM - Forum: Game Development - Replies (4)

I am very very new to python and trying to make a simple game where you type a choice and something happens depending on the choice but I'm not quite ..... More

Print this item

  Help loading INT from a file.
Posted by: lovepeace - Apr-13-2019, 12:45 PM - Forum: General Coding Help - Replies (1)

hello, I'm new here, and new to python. so please be patient with me lol Smile
I'm making an app to track my cycling miles. I need to be able t..... More

Print this item

  writing in particular positions
Posted by: clarablanes - Apr-13-2019, 09:39 AM - Forum: General Coding Help - Replies (5)

Dear friends,
I have a file with thousands of molecule coordinates. Everyone should have a name but unfortunately the names are missing. I have to pu..... More

Print this item

  coming up with a sentinel string for file names
Posted by: lacaca - Apr-13-2019, 09:25 AM - Forum: News and Discussions - Replies (1)

i am designing a few commands which need to have 2 lists of file or directory names. what i need to come up with is some string that is reasonable to ..... More

Print this item

  Bad marshal data (string ref out of range) error
Posted by: neodark - Apr-13-2019, 07:19 AM - Forum: General Coding Help - Replies (2)

Hi, I have an simple python script in a raspberry that the only thing that it do is execute some telegrams commands... http requests.... and enable or..... More

Print this item

  Help in adding confusion matrix
Posted by: Aashish - Apr-13-2019, 04:27 AM - Forum: Data Science - Replies (6)

Help....performed image classification on cifar-10 dataset but not able to add confusion matrix.
Kindly help me out in adding confusion matrix in thi..... More

Print this item

  Fastest dict/map method when 'key' is already a hash?
Posted by: tasket - Apr-13-2019, 03:35 AM - Forum: General Coding Help - Replies (6)

I'm implementing deduplication for a new backup tool based on LVM thin-delta where the destination archive consists only of chunks, together with a ma..... More

Print this item

  Using this Python version of text2pdf
Posted by: Pedroski55 - Apr-13-2019, 01:48 AM - Forum: General Coding Help - Replies (1)

I'm trying to convert text files to pdf. I want to set the page to A5, landscape.

To my surprise, I found this Python file in /home/pedro/.local/bi..... More

Print this item

  error json
Posted by: pifko22 - Apr-13-2019, 12:55 AM - Forum: General Coding Help - Replies (1)

Greetings, in my code, I try to list only the parameters I need. In this case, they are face attributes and emotions. I still get a mistake. that stri..... More

Print this item

  Old Python-version used by IDLE
Posted by: GeNoS - Apr-12-2019, 10:25 PM - Forum: News and Discussions - Replies (7)

Help please:
When I installed Python on my Raspian stretch, Python 3.5.3. was the most actual version. After starting IDLE it shows " Python 3.5.3 (/..... More

Print this item

  Trying to make a shortcut key to execute program
Posted by: 357mag - Apr-12-2019, 07:24 PM - Forum: News and Discussions - Replies (1)

I'm looking for a way to make a shortcut key for running my program. I would rather not reach down into the menu and click on Execute Program each tim..... More

Print this item

  I'm not clear on buying WingWare Pro
Posted by: 357mag - Apr-12-2019, 06:39 PM - Forum: News and Discussions - Replies (3)

I'm thinking about buying the Pro version of WingWare, but I'm not clear on how the company works this. Do I only need to buy the software once? Or do..... More

Print this item

  Curl command to python requests
Posted by: pythonclass - Apr-12-2019, 06:29 PM - Forum: General Coding Help - No Replies

Hello. I am very new to python and would appreciate some help with the following. I have this curl command which works fine:
curl --cacert C:\cacert..... More

Print this item

  httplib to http.client conversion issue
Posted by: zatlas1 - Apr-12-2019, 05:07 PM - Forum: General Coding Help - Replies (1)

I am a relatively newbie, dealing with python 2.7 code that needs to go to python 3.6 or 3.7
In the code I have 'import httplib' that I dutifully cha..... More

Print this item

  Comparing complicated arrays.
Posted by: kietrichards - Apr-12-2019, 04:30 PM - Forum: News and Discussions - Replies (3)

Hello. Do you have any idea how to compare this example two arrays? Here it's not visable. But nummber of columns in both arrays is the same, but numb..... More

Print this item

  Parsing infor from scraped files.
Posted by: Larz60+ - Apr-12-2019, 04:09 PM - Forum: Web Scraping & Web Development - Replies (2)

I am trying to get one simple bit of data from several thousand scraped files.
I want to do this using concurrent futures, but am having a bit of an ..... More

Print this item

  TreeTagger : parameter file invalid : english.par
Posted by: Raph0909 - Apr-12-2019, 12:11 PM - Forum: General Coding Help - No Replies

Hi,

I need to have a TreeTagger for my project, I made the right import, pip install treetaggerwrapper was done, I placed it in my files (C:\Users\..... More

Print this item

  Help trying to write a function
Posted by: Rochense - Apr-12-2019, 11:32 AM - Forum: General Coding Help - Replies (3)

Hello, I have some trouble trying to define a function using the math module to write a logarithm and then derivating it in python 2.7.

I want to w..... More

Print this item

  how to insert image into Text widget Tkinter
Posted by: atlass218 - Apr-12-2019, 10:58 AM - Forum: GUI - Replies (5)

Hello;

I created a small application for testing, but I encountered a problem displaying the image in the content of the Tkinter Text widget.

In fac..... More

Print this item

  list evaluation
Posted by: go127a - Apr-12-2019, 10:27 AM - Forum: General Coding Help - Replies (2)

Hello,
after input and some evaluation I can reach the below list:
[1, 5, 7, 9, 5, 6, 20, 30]
for every number in that list, first number is price ..... More

Print this item

  Fingerprint audio - chromaprint and get fingerprint
Posted by: alessandro87gatto - Apr-12-2019, 07:51 AM - Forum: Homework - Replies (5)

Hi everyone,
as written in the presentation, I'm new to the forum. I'm trying to compare two audio tracks. I searched a lot on the web finding old gu..... More

Print this item

  Fixate graphs on scrollable canvas
Posted by: janema - Apr-12-2019, 07:36 AM - Forum: GUI - Replies (6)

The idea is that I want the graphs only to appear on the scrollable canvas next to the previous graph. At this moment when I create another graph it w..... More

Print this item

  dictionaries and list as values
Posted by: Pippi - Apr-12-2019, 06:52 AM - Forum: Homework - Replies (6)

So I have an assignment where I have a sequence id's as a key in a dictionary and the values are lists of sequences of a certain length associated wit..... More

Print this item

  append no working
Posted by: pythonduffer - Apr-12-2019, 06:00 AM - Forum: General Coding Help - Replies (3)

I wrote this simple python program

[python]
L=[]

for i in range(0,5):
L.append(i)

print(*L..... More

Print this item

  Problems with loading buttons (pygame)
Posted by: SheeppOSU - Apr-12-2019, 01:50 AM - Forum: Game Development - Replies (2)

I am making a game which is so far good, but after the player fills in all the info, it doesn't display the buttons. The shell is in typable mode (Can..... More

Print this item

  Regex to extract IPs between () not working
Posted by: mrapple2020 - Apr-12-2019, 12:03 AM - Forum: General Coding Help - Replies (5)

Hello, can you please help me retrieve IP addresses between (). Like this:
(1.1.1.1,230.1.1.1)
[python]
Notice the below is not working since it is..... More

Print this item

  yield help
Posted by: chakox - Apr-11-2019, 11:27 PM - Forum: General Coding Help - Replies (5)

hey everyone !
So I'm currently testing yield function
[python]
#contient des exemples d'utilisation de la fonction Yield

#exp 1
def exYield1() :
..... More

Print this item

  Money Global Variable
Posted by: saturnstars - Apr-11-2019, 07:46 PM - Forum: Homework - Replies (9)

As my last assignment in class I’m making a sort of fantasy marketplace RPG simulation where I have a money value that needs to change and use the new..... More

Print this item

  Newbie Question re "TypeError: '<' not supported between instances of 'list' and 'int
Posted by: sr12 - Apr-11-2019, 07:02 PM - Forum: General Coding Help - Replies (8)

[python]def function_1(x):
if x < 0:
return -1000000000
else:
return (x ** (1-2)-1)/(1-2)

list = [1, 2, 3, 4,]

[func..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... Today, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Today, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... Yesterday, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... Yesterday, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577371
  Tutorial Requ... 500767
  Web Scraping ... 441026
  Newbie with P... 385072
  New Users Int... 369599
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
hoki1881 Today
stephaniehendrix Today
Schirag Today
Jacobjoift Today
sophielane Yesterday

User Panel Messages

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