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,981
» Latest member: Dichaelmag
» Forum threads: 38,733
» Forum posts: 175,565

Full Statistics

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

Latest Threads
LhanePulse
Forum: General Coding Help
Last Post: Dichaelmag
30 minutes ago
» Replies: 0
» Views: 16
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
5 hours ago
» Replies: 4
» Views: 1,987
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 409
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,043
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,100
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 769
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,074
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,518
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,094
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,554

 
  Default python version on Windows (3.6.x vs 3.6.y)
Posted by: gramakri - May-04-2019, 09:54 PM - Forum: News and Discussions - Replies (1)

I have two python versions on my PC - 3.6.1 and 3.6.8

I need to use 3.6.1 as the default version due to an automation framework being heavily depe..... More

Print this item

  Super with Sublime Text - TypeError: super() takes at least 1 argument (0 given)
Posted by: Shafla - May-04-2019, 07:40 PM - Forum: General Coding Help - Replies (6)

Hi
I am trying to use the super function. I am getting the following message;

[error]File "/Users/shaneshomefolder/Documents/Lists/numercial list..... More

Print this item

  Coding on Spyder problem
Posted by: Frank1905 - May-04-2019, 06:27 PM - Forum: News and Discussions - No Replies

Hi,
I've just started studying Python and my professor suggested me to use Spyder as IDE.
I found 2 existing versions of Spyder: Spyder and Spyder3.
W..... More

Print this item

  Keras Target Problem
Posted by: inco - May-04-2019, 04:39 PM - Forum: Data Science - Replies (1)

The train data: 897 ndarrays (5,1980 - float64) between 0-1. The labels are binary, 0 or 1.
[python]
trainX.shape
Out[4]: (897, 5, 1980)
trainY.shape
..... More

Print this item

  Guidance in Creating random output for a variable.
Posted by: Livne_ye - May-04-2019, 12:49 PM - Forum: General Coding Help - Replies (1)

Hi - This thread is not for problem solving but for giving tools into creating a code for a certain idea (tried to find a solution in certain threads ..... More

Print this item

  Add a stored procedure with variable using MySQL Connector
Posted by: UtiliseIT - May-04-2019, 12:46 PM - Forum: General Coding Help - No Replies

Hi, Im using the Python MySQL Connector to fire a stored procedure with a variable.

Thanks to the awesome help in this forum my working version of ..... More

Print this item

  Is there similar function to lsqnonlin (in matlab) in python?
Posted by: Jay_Nerella - May-04-2019, 11:51 AM - Forum: Data Science - Replies (1)

I have done the curve fitting for a specific equation in matlab. I have got the coefficients of the equation. And when I plotted the implicit equation..... More

Print this item

  Can't load a png image tkinter
Posted by: Pythenx - May-04-2019, 11:24 AM - Forum: GUI - Replies (2)

I don't get any errors, but the image just won't show up. It just shows a blank window with canvas.

[python]
from tkinter import *


root = Tk(..... More

Print this item

  Multiple IF statements
Posted by: kamacaziYakuta - May-04-2019, 11:14 AM - Forum: General Coding Help - Replies (1)

so i want to be able to pick out keywords from an input and if all keywords are present i want it to output full marks!!! any help on what to do this ..... More

Print this item

  Data saving structure
Posted by: JosefFilosopio - May-04-2019, 10:44 AM - Forum: Data Science - No Replies

Dear forum users,

For a project I want to save data to a file. There will be certain parts of the screen. When the system detects something in that..... More

Print this item

  [split] What is a GUI's mainloop ?
Posted by: kom2 - May-04-2019, 10:39 AM - Forum: GUI - Replies (1)

what exactly is mainloop for? What is it´s purpose?

Print this item

  Inverse of singular matrix
Posted by: Divanova94 - May-04-2019, 10:12 AM - Forum: Data Science - Replies (4)

How one can invert this singular matrix?

[python]
m1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0, ..... More

Print this item

  How to check HTTP error 500 and bypass
Posted by: SriMekala - May-04-2019, 10:10 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi

I want to catch dara from web, but some the web reload for ever (without any error), and some time it catch firewall isuse(HTTP error 500).

B..... More

Print this item

  creating an 'adress book' in python using dictionaries?
Posted by: apollo - May-04-2019, 10:10 AM - Forum: General Coding Help - Replies (6)

hello dear Python-experts


i am currently creating  an 'adress book' python where i want to use dictionaries?

the plan:
I'm trying to c..... More

Print this item

  Image with pillow on macos not showing
Posted by: rhoekstra - May-04-2019, 08:06 AM - Forum: GUI - Replies (3)

Hi there,

I'm fairly new to programming in Python and was going through a tutorial which came across GUI programming with tkinter (Python3).

I w..... More

Print this item

  Read CSV file into MySQL and use executemany instead of execute
Posted by: bluethundr - May-04-2019, 03:05 AM - Forum: General Coding Help - Replies (1)

I have a python script that reads a large (4GB!!!) CSV file into MySQL. It works as is, but is DOG slow. The CSV file has over 4 million rows. And it ..... More

Print this item

  print is showing non printable characters
Posted by: turtleman - May-04-2019, 02:58 AM - Forum: General Coding Help - Replies (5)

A simple code to call the Windows OS "dir" command:

[python]import subprocess

output = subprocess.run('dir',stdout=subprocess.PIPE,shell..... More

Print this item

  Need help with the while function(Beginner)
Posted by: ogobogo20 - May-03-2019, 11:34 PM - Forum: General Coding Help - Replies (1)

[python]while guess_count<guess_most:
answer=input('Guess a number ')
guess_count+=1
if str(answer)==str(winning_number):
..... More

Print this item

  [django] problems with tables
Posted by: SheeppOSU - May-03-2019, 08:38 PM - Forum: Web Scraping & Web Development - Replies (3)

There is bunch of code and stuff from the cmd too. Here is a link to the tutorial I was following - https://www.youtube.com/watch?v=aHC3uTkT9r8 - I di..... More

Print this item

  How to continue in loop until correct input received
Posted by: sunnyarora - May-03-2019, 08:27 PM - Forum: General Coding Help - Replies (10)

Hi Guys,
Pls help me out !
[python]while(1):
fname=input("Enter Father's First name")
fname = fname.lower()
i..... More

Print this item

  Merge 2 lines with delimiter
Posted by: Buddhism - May-03-2019, 07:54 PM - Forum: General Coding Help - Replies (9)

So I have code that prints out a into a file like this:
[quote]
xxx.xxx.xx.xx
yyyy
#5 blank line gap
xxx.xxx.xx.xx
yyyy
#5 blank line ga..... More

Print this item

  error: self.name = "NPC{}".format(num_of_NPCs + 1)
Posted by: Exsul - May-03-2019, 07:23 PM - Forum: General Coding Help - Replies (1)

Code:
[python]class NPC:

num_of_NPCs = 0

def __init__(self):
self.name = "NPC{}".format(num_of_NPCs + 1)
NPC.num_of_N..... More

Print this item

  PyCon 2019
Posted by: snippsat - May-03-2019, 06:52 PM - Forum: News and Discussions - No Replies

PyCon 2019 has started, YouTube chann[url=https://python-forum.io/thread-18048.html]..... More

Print this item

  Book: "Python in high school"
Posted by: arnbod - May-03-2019, 05:55 PM - Forum: News and Discussions - Replies (1)

Dear all,

I would like to promote the book "Python in high school - Algorithms and mathematics" (..... More

Print this item

  Reading one value from an array in reverse
Posted by: DreamingInsanity - May-03-2019, 05:50 PM - Forum: General Coding Help - Replies (10)

Take this array: [[100, 200, 0], [100, 300, 1], [100, 400, 2]]
It can be split into three things: [position1, position2, message]
I can reverse the ..... More

Print this item

  Help interpreting code
Posted by: schniefen - May-03-2019, 04:53 PM - Forum: Homework - Replies (1)

I'm trying to understand the following code that sets up the three term recursion ui+1=a1u1+a0u[sub]i-1[/s..... More

Print this item

  Convert C code to python
Posted by: mcvta - May-03-2019, 03:50 PM - Forum: Homework - Replies (3)

The following C code is used to stabilize temperature profiles in lakes, and I´m trying to convert it to python, but there is something wrong with my ..... More

Print this item

  How to create a delay for AI without freezing the GUI
Posted by: kom2 - May-03-2019, 03:30 PM - Forum: GUI - Replies (8)

I want to create an AI move into my game, after the player does one. Is there any function I could use in order to let AI wait for few seconds before ..... More

Print this item

  Importing a CSV loops to infinity in python
Posted by: bluethundr - May-03-2019, 03:19 PM - Forum: General Coding Help - Replies (2)

I've accidentally created an infinite loop importing a CSV file using python and importing it into MySQL. I don't see where the error is!

This is m..... More

Print this item

  Integration of Python with MatDeck software
Posted by: babicmatpy - May-03-2019, 02:17 PM - Forum: News and Discussions - Replies (4)

Hello everyone,

I discovered a new software MatDeck, which makes possible to write and execute the Python code in MatDeck documents.

As stated..... More

Print this item

  Python
Posted by: tanj74272 - May-03-2019, 02:06 PM - Forum: General Coding Help - Replies (5)

Hi, I need help for the python script.

Print this item

  Self re-initializing variable?
Posted by: python_user_n - May-03-2019, 01:35 PM - Forum: General Coding Help - Replies (6)

Hello,
I'm testing this snippet of code:
[python]
ld = [1, 2, 3]
ll = ['a', 'b', 'c']
loft = zip(ll, ld)
#for i in loft:
# print(i)
print(l..... More

Print this item

  How to fix and extract Google CSE JSON API using Python.exe
Posted by: venkatsrrecruiter - May-03-2019, 01:15 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi Friends,

I am newbie and came here with a an code error and needs some code corrections to my python script.
I been facing struggling find the ..... More

Print this item

  How "continue" in another indentation?
Posted by: CaptainCsaba - May-03-2019, 12:17 PM - Forum: General Coding Help - Replies (6)

hey!

I have the following part of a code. It basically does lots of things with PDFs in folders. For reasons I needed to add a criteria wheer if a ..... More

Print this item

  SQL module selection
Posted by: Nuzvee - May-03-2019, 12:00 PM - Forum: General Coding Help - No Replies

Hi,

I need help since i can't manage to make a decision since it will end up being a pretty uninformed selection.

I have written an extensive sc..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  LhanePulse 30 minutes ago Dichaelmag Dichaelmag General Codin...
  Error: cannot mix str wit... 5 hours ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 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...
Most views
  The best Prog... 577434
  Tutorial Requ... 500921
  Web Scraping ... 441074
  Newbie with P... 385138
  New Users Int... 369681
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
python 6
NonEntity 5
buran 3
Newest members
Dichaelmag Today
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday
hoki1881 Yesterday

User Panel Messages

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