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,942
» Latest member: helendamdam
» Forum threads: 38,724
» Forum posts: 175,519

Full Statistics

Online Users
There are currently 77 online users.
» 1 Member(s) | 66 Guest(s)
Bing, AOL, Google, AOL, Applebot, Facebook Dev, deanhystad

Latest Threads
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
20 minutes ago
» Replies: 2
» Views: 356
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
1 hour ago
» Replies: 0
» Views: 22
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 9
» Views: 504
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,715
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,050
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,406
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,958
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,722
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,794
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,939

 
  where is NoneType defined?
Posted by: Skaperen - Jan-23-2021, 11:06 PM - Forum: News and Discussions - Replies (1)

where is NoneType defined or is NoneType = type(None) the only way to get it?

Print this item

Question How to make a 3D List of Excel Spreadsheets?
Posted by: chatguy - Jan-23-2021, 10:50 PM - Forum: General Coding Help - Replies (4)

Hi-
I've been failing greatly trying to get different ideas working, or finding how to do this.

Is there a snippet of code I may please use (usi..... More

Print this item

  testing value type 2
Posted by: Skaperen - Jan-23-2021, 10:18 PM - Forum: News and Discussions - Replies (2)

what about

if foo in (Sometype,):
    ...
compared to
if foo is Sometype:
    ...
is [inline]in[/inlin..... More

Print this item

  list, int and .grid() come on!
Posted by: Davy_Jones_XIV - Jan-23-2021, 08:44 PM - Forum: Homework - Replies (5)

Hey all,

I am stuck on this error that I thought I understood, but I am struggling, so I decided to reach out to the community.

The code is:
..... More

Print this item

  create new tabs and populate using python
Posted by: reggie4 - Jan-23-2021, 07:47 PM - Forum: General Coding Help - Replies (2)

Hi all,

It it possible to place data programmatically into different spreadsheet tabs using python?

Thanks,

Reggie.

Print this item

Photo How do you translate this in Python?
Posted by: pythonflea - Jan-23-2021, 06:21 PM - Forum: Data Science - Replies (5)

How do you translate this (what I believe is an) algorithm?
[Image: gkzUVYz]
If you can't see the image, kindly click on this li..... More

Print this item

  Outputs "NaN" after "DataFrame columns" function?
Posted by: epsilon - Jan-23-2021, 06:17 PM - Forum: Data Science - Replies (7)

[python]
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy.signal import argrelextrema

data = pd.read_csv("Data..... More

Print this item

  Flask-WTF - FlaskForm
Posted by: mateuszpozn - Jan-23-2021, 02:07 PM - Forum: Homework - Replies (2)

Hi all Smile
I am learning Flask and I have trouble understanding FlaskForm from Flask-WTF.
Code below.

hello.py
[python]
class NameForm(..... More

Print this item

  loading a dictionary
Posted by: Skaperen - Jan-23-2021, 08:00 AM - Forum: General Coding Help - Replies (4)

i get a dictionary returned from a function call. this is a bunch of variable name keys and new values for them. there are a lot of them and a very ..... More

Print this item

  testing value type
Posted by: Skaperen - Jan-23-2021, 01:13 AM - Forum: News and Discussions - Replies (1)

what is the reason we should do isinstance(foo,str) instead of type(foo) is str or type(foo) == str..... More

Print this item

  len(row) does not count rows correctly
Posted by: quest_ - Jan-22-2021, 11:35 PM - Forum: General Coding Help - Replies (3)

Hello,

I have this code script:
[python]
triplets = tuple(itertools.product((0, 1), repeat = 2))
freq = []
sums = {}
for row in newlist2:
print(..... More

Print this item

  [PyGTK] How to center text on multi-line buttons?
Posted by: Lomax - Jan-22-2021, 11:25 PM - Forum: GUI - Replies (3)

Title pretty much says it all; if I make a button in GTK with a text label that has line-break(s) in it, the text on the label ends up being left alig..... More

Print this item

  Request for [PyGTK] or [GTK] prefix in GUI forum
Posted by: Lomax - Jan-22-2021, 11:09 PM - Forum: News and Discussions - Replies (2)

I am the only one building Python GUI apps with GTK3? Surely not! Or have I missed something? Undecided

Print this item

  MP3 Tags to Excel Not working
Posted by: giddyhead - Jan-22-2021, 09:16 PM - Forum: General Coding Help - Replies (5)

Hello,

I have been trying for a while now to have the MP3 Tags from the song files added to an excel spreadsheet. When I use the gettags[0] in the..... More

Print this item

  Making new lines of code
Posted by: AvioxyYT - Jan-22-2021, 06:25 PM - Forum: General Coding Help - Replies (1)

Hi there!

Sorry about the lame question but I just started using python and am wondering how to make a new line like
this without it running the code..... More

Print this item

  Virtual environment and upgrading python 3.5 to 3.9
Posted by: NeilUK - Jan-22-2021, 05:34 PM - Forum: General Coding Help - Replies (4)

I have python 3.5.2 with a single virtual environment on linux mint 18, which also has a system 2.7.12. I have installed a number of packages using pi..... More

Print this item

  Python Doubt
Posted by: csrlima - Jan-22-2021, 05:23 PM - Forum: General Coding Help - Replies (5)

Hi , i need some help in python script :
Im receiveing data from USB0 of my Raspberry Pi and for now , with my python script i can print all data . W..... More

Print this item

  sorting alphanumeric values in a human way
Posted by: idiotonboarding - Jan-22-2021, 04:37 PM - Forum: General Coding Help - Replies (3)

So simple question, I could make it work in a lambda probably but my experience is limited and I suspect there may already be a built in to do what I ..... More

Print this item

  I have two Same Code but One of them Doesnt Work
Posted by: beginner721 - Jan-22-2021, 04:32 PM - Forum: General Coding Help - Replies (6)

Hello everyone.. I have a problem
I have two Same Code but One of them Doesnt Work

This is the one that doesnt work
[python]balance=1000
## 1= BALANC..... More

Print this item

  Hide source code from python process itself
Posted by: xmghe - Jan-22-2021, 04:07 PM - Forum: Web Scraping & Web Development - Replies (2)

If someone manages to hack my web application and/or the python interpreter itself, is it possible to prevent the python process from extracting its o..... More

Print this item

  Sublime Text
Posted by: TechNitium - Jan-22-2021, 03:38 PM - Forum: General Coding Help - Replies (4)

I am using sublime text but when I run/build it, my code just prints and isn't interactive so how do I run it through terminal.

Print this item

  convert List with dictionaries to a single dictionary
Posted by: iamaghost - Jan-22-2021, 02:28 PM - Forum: General Coding Help - Replies (3)

Hey guys,

i have a matrix with lots of zeroes. In order to make the code more efficient i want to write code, that takes the rows and colums as ind..... More

Print this item

  How do I end my while loop
Posted by: TechNitium - Jan-22-2021, 01:56 PM - Forum: General Coding Help - Replies (5)

[python]choice = input("")
c = ("enter")

while c != ("exit"):
if (choice) == (2):
new_entry()
c = ("enter")
#if you select optio..... More

Print this item

  How to update values in a pyarrow table?
Posted by: xraphael75 - Jan-22-2021, 01:29 PM - Forum: General Coding Help - Replies (1)

I have a python script that reads in a parquet file using pyarrow. I'm trying to loop through the table to update values in it. If I try this:

[pytho..... More

Print this item

  Working with Timestamp in Mulitindex
Posted by: krischanb - Jan-22-2021, 12:52 PM - Forum: General Coding Help - No Replies

Hi,
I imported a csv containing from three different temprature sensors values taken each 10 minutes. The point, where I am stuck right now is the Mu..... More

Print this item

  Filesystem folder size sort
Posted by: reggie4 - Jan-22-2021, 12:45 PM - Forum: General Coding Help - No Replies

Hi all,

I have a large number of videos in a large number of folders on a 4TB removable hard drive. I want to backup this 4TB to 4x1TB drives. The ..... More

Print this item

  Why do I get Syntax error?
Posted by: TechNitium - Jan-22-2021, 12:25 PM - Forum: General Coding Help - Replies (1)

[python]#getpass will hide what the person is typing during the password
import getpass

def new_entry():
#input the username and password and t..... More

Print this item

  TKinter restarting the mainloop when button pressed
Posted by: zazas321 - Jan-22-2021, 08:25 AM - Forum: GUI - Replies (7)

Hello. I have a complex program running in Python and I want to be able to interrupt it and restart the mainloop at any time I want.

I have made a ..... More

Print this item

Star Recursively convert nested dicts to dict subclass
Posted by: Alfalfa - Jan-22-2021, 02:37 AM - Forum: General Coding Help - Replies (1)

Context: Elegant solution needed to monitor and save database changes during runtime. To minimze IO, the solution should be based on signals ra..... More

Print this item

  Open a setup python file?
Posted by: Adlo777 - Jan-22-2021, 12:10 AM - Forum: Homework - Replies (2)

I recently downloaded the VSL compiler developed by Matthieu Amiguet (http://www.matthieuamiguet.ch/pages/compilateurs) to learn how to compile with P..... More

Print this item

  Trying to solve an exercise
Posted by: frafrog - Jan-21-2021, 10:59 PM - Forum: Homework - Replies (3)

Hello, I'm trying to solve this exercise from the book think python :
Exercise 9.6. Write a function called is_abecedarian that returns True if the l..... More

Print this item

  What book/course do you recommend for an "advanced" beginner?
Posted by: Edmond - Jan-21-2021, 09:31 PM - Forum: News and Discussions - Replies (3)

Hello! I'm teaching myself to code with the eventual goal of a career switch into data science (long term). I've started by reading books and watchi..... More

Print this item

  Object detection on ground via the use of geo/sat UAV images
Posted by: hobbyist - Jan-21-2021, 09:02 PM - Forum: General Coding Help - Replies (2)

Hello,

I have few UAV images and I am searching how to do 2 things.
1) Identify specific objects on ground and isolate these objects as new images
2)..... More

Print this item

  Simple longline function
Posted by: programerAnel - Jan-21-2021, 07:17 PM - Forum: Code Review - No Replies

Please guys don't tell me that I must use the save to path and load from path

[python]def reduce_image_size(dmy):
with open('MyTempImage.jpg'..... More

Print this item

  Cannot Assign right Answers To Shuffled Questions
Posted by: Boblows - Jan-21-2021, 06:50 PM - Forum: General Coding Help - Replies (6)

Hello guys,just started coding with python and come up with an idea of writing multiple choice exam wich shuffles the questions with random.shuffle i..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A coding beginner needs h... 20 minutes ago Littlefish Littlefish General Codin...
  Is the interpreter that c... 1 hour ago helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 6 hours ago Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576654
  Tutorial Requ... 498751
  Web Scraping ... 440493
  Newbie with P... 384420
  New Users Int... 367884
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+ 12087
buran 8175
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
helendamdam Today
pllrdvalery Yesterday
Littlefish Yesterday
Noya_Yonatan 09-21
Saipython555 09-21

User Panel Messages

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