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

Full Statistics

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

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
4 hours ago
» Replies: 2
» Views: 167
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
11 hours ago
» Replies: 2
» Views: 802
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 05:45 PM
» Replies: 6
» Views: 843
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 538
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,911
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,315
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,890
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,310
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,237
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,559

 
  "None" in array
Posted by: dl0banter - Mar-28-2019, 08:59 PM - Forum: General Coding Help - Replies (1)

I am getting None in an array as output with the following code. Basically there are 3 items in the list which I can print as only three items. When..... More

Print this item

  help cant do random number
Posted by: nonzzo - Mar-28-2019, 07:08 PM - Forum: General Coding Help - Replies (1)

[python]
import random
while True:
navn = input("Navn?: ")
alder = input("alder?: ")
køn = input("kvinde eller mand?: ")
randnu..... More

Print this item

  To make an algorithm work faster
Posted by: pianistseb - Mar-28-2019, 06:11 PM - Forum: General Coding Help - Replies (3)

I am using biopython for dna sequences. I am new in this python library. I have a .fasta file that has a 4-letters dna code, and I want to convert it ..... More

Print this item

  Convert string to a specific number of bytes
Posted by: artblinked - Mar-28-2019, 05:57 PM - Forum: Homework - Replies (1)

Hello!

I have a class with instance attributes. I need to create an object with each instance having its own values (some are ints, others are stri..... More

Print this item

  Combining two strings together (not concatenation)
Posted by: DreamingInsanity - Mar-28-2019, 05:27 PM - Forum: General Coding Help - Replies (6)

Take these two strings: '1000004000001' and '100000000333331'
When combined, they should become '1000000400333331'. Of course, the number '3's can on..... More

Print this item

  Enabling I2C on Raspberry Pi
Posted by: DJBuck - Mar-28-2019, 04:11 PM - Forum: General Coding Help - Replies (1)

Tried posting this to the Raspberry Pi forum, but the concept of "urgent" appears to carry no meaning with them.

https://learn.adafruit.com/adafrui..... More

Print this item

  I build and install PyQT for python2 but it not recognize in python
Posted by: nadavvin - Mar-28-2019, 12:49 PM - Forum: GUI - Replies (7)

I try to run Spyder on python 2 therefore I needed to build PyQT.

make and make install for PyQT5, sip work without errors but spyder still complai..... More

Print this item

  How to show remove button at the right side of the hovering item of a combobox popup?
Posted by: indrajitmajumdar - Mar-28-2019, 11:24 AM - Forum: GUI - No Replies

Hi there,
What I want is a means/way to remove an item from the wxpython combobox without having to add a separate remove button somewhere else in th..... More

Print this item

  get the full address from a zip (postal) code
Posted by: mfran2002 - Mar-28-2019, 10:02 AM - Forum: General Coding Help - Replies (4)

Hi all,
I need to get the full address from a zipcode

my company has a contract to use google api, but I don't know where to start

thank you!
..... More

Print this item

  Build class to make a Smart list - trying
Posted by: icm63 - Mar-28-2019, 06:58 AM - Forum: General Coding Help - Replies (7)

Class

[python]
import datetime as dt


class Defaults:
"""Storage of Default Values"""

dbConStr = "pass:Name:Database;"
baseDa..... More

Print this item

  Help using a pre-code for Discrete Fourier Transform
Posted by: ToucheP - Mar-28-2019, 06:18 AM - Forum: Homework - No Replies

Hello,

This is the pre-code I have

[python]
# Discrete Fourier Transform Fn
def dft(fk):
Fn = []
N = len(fk)
for k in range(N):
..... More

Print this item

  Trouble figuring out how to pass a value between functions?
Posted by: Reta - Mar-28-2019, 04:37 AM - Forum: Homework - Replies (1)

Hey all, the following block of code yields a "decide" is not defined

I created a 'decide=input()' inside a function
Is it possible to call 'decid..... More

Print this item

  unix shell in python
Posted by: Skaperen - Mar-28-2019, 02:10 AM - Forum: Bar - Replies (3)

if you wrote a unix shell, or equivalent for windows, in python, what would the interactive commands be like? would you make them be pythonic?

Print this item

  need help with making a validating function
Posted by: drasil - Mar-28-2019, 01:03 AM - Forum: General Coding Help - Replies (8)

[b]i am trying to write a program that checks the entered number and print if it valid the number also has to limited to 9 characters and has to be a ..... More

Print this item

  Trouble coding hangman
Posted by: Tay - Mar-28-2019, 12:58 AM - Forum: General Coding Help - Replies (1)

So I have a code for hang man and i have a string of words to selct from Ive set up so as the word will be seperated by letter e.g

W o r d
I want..... More

Print this item

  "not defined" error in function referencing a class
Posted by: Exsul - Mar-27-2019, 11:31 PM - Forum: General Coding Help - Replies (2)

Question.py

class Question:
    def __init__(self, prompt, answer):
        self.prompt = prompt
        self.answer = answer
scratc..... More

Print this item

  removing tabs from input text
Posted by: jenya56 - Mar-27-2019, 10:55 PM - Forum: General Coding Help - Replies (3)

Hi, was wondering if you could help. My file f contains some tabs and I want to remove them. I have a code below that does read text line by line but ..... More

Print this item

  Index error using pop in nested loop
Posted by: PerksPlus - Mar-27-2019, 10:14 PM - Forum: General Coding Help - Replies (3)

Hello. This is my first post, so I hope I'm not screwing this up too badly. I'm trying to get back into Python and coding in general after a 10ish yea..... More

Print this item

  Help with tkinter; images and button commands
Posted by: SheeppOSU - Mar-27-2019, 09:45 PM - Forum: GUI - Replies (2)

I'm making a game and I have a few problems. The first is that the BG image shows up when the game is opened. I really just want it to open when the b..... More

Print this item

  Trying to Repeat a Function?
Posted by: DanielHetherington - Mar-27-2019, 09:06 PM - Forum: General Coding Help - Replies (1)

So I'm quite new to Python and I'm trying to make projects to hone my skills and learn new ones. Currently, I am making a game where your opponent (AI..... More

Print this item

  How to transform array into dataframe or table?
Posted by: python_newbie09 - Mar-27-2019, 08:53 PM - Forum: Data Science - Replies (2)

I would like to transform the array below into a dataframe with two columns. The values on the right will be column 1 and the values on the left will ..... More

Print this item

  Do not know how to what to do next
Posted by: sunhyunshine - Mar-27-2019, 08:12 PM - Forum: Homework - Replies (8)

Hello everyone, i am new to python and i have homework assignment.
My python ver. is 3.6.6
#The user is asked to enter the title and year of issue of..... More

Print this item

  Inserting new row into SQLite
Posted by: KevinBrown - Mar-27-2019, 07:46 PM - Forum: General Coding Help - Replies (5)

While trying to INSERT into SQLite, can anyone advise on the reason for the error syntax error given in the example CODE 1 while CODE 2 and CODE 2 fun..... More

Print this item

  while with try and except gets stuck in an endless loop?
Posted by: pcarra - Mar-27-2019, 06:52 PM - Forum: General Coding Help - Replies (3)

I am working on input validation to validate integer input and index range. My def inputNumber(message) function works as I use it in other areas of ..... More

Print this item

  Know in advance how long an algo is going to run
Posted by: nathan_toubiana - Mar-27-2019, 04:22 PM - Forum: Data Science - No Replies

Hey all,

Six months ago a friend and I got started on this interesting challenge: Could one accurately predict the training time of common data sci..... More

Print this item

  maze solution
Posted by: jenya56 - Mar-27-2019, 04:03 PM - Forum: General Coding Help - Replies (5)

Dear all,
I am stuck with this code. It appears to be working for most of the situations. But for this particular maze, it fails. I have a 2D array o..... More

Print this item

  Smtplib: What does context argument means?
Posted by: Pythenx - Mar-27-2019, 03:51 PM - Forum: General Coding Help - Replies (1)

In lines 13 and 14 what exactly does context mean? Why do we need to use it?
[python]import smtplib, ssl

port = 465 # For SSL
smtp_server = "smt..... More

Print this item

  while + if + elif + else combination
Posted by: ClassicalSoul - Mar-27-2019, 03:40 PM - Forum: General Coding Help - Replies (1)

What is wrong with this code?? If I input a number it says I get 'That is not a number'. Why?

[python]
while True:
text = input('Number (or \'Qu..... More

Print this item

  Getting an unexpected generator object ?
Posted by: mcgrim - Mar-27-2019, 12:33 PM - Forum: General Coding Help - Replies (19)

This program should find the difference between the integral of a specific function and the number obtained with the trapezoid formula.
I expect to ..... More

Print this item

  Automate the calculus of NDVI index on a 100 images
Posted by: yassine01 - Mar-27-2019, 12:13 PM - Forum: General Coding Help - No Replies

Hello.
I want to automate this code below for other 99 images, the problem that I have is that each image is in its specific folder as it's mentioned..... More

Print this item

  Finding Coordinates
Posted by: Sikum7 - Mar-27-2019, 11:25 AM - Forum: Data Science - No Replies

Hello,

I am new with python and i have been trying to find the cordinates of the tracked yellow color from the webcam. But I am not able to find th..... More

Print this item

  How to read PYD file?
Posted by: shashwat_math - Mar-27-2019, 10:05 AM - Forum: General Coding Help - Replies (1)

I am using 4Suite package for XML processing.
The folder structure saves XmlString.py, XmlString.pyc and XmlString.pyd files.
I am receiving error w..... More

Print this item

  Sorting csv or txt file on date and time
Posted by: AshBax - Mar-27-2019, 09:25 AM - Forum: General Coding Help - Replies (4)

Hi,

I'm trying to sort a large txt file on 2 columns: date and then time: I've enclosed a small sample of this:

1,2,3,4,5,6,7,8,9,10

201902..... More

Print this item

  Problem with croniter in python script
Posted by: Lafayette - Mar-27-2019, 09:02 AM - Forum: General Coding Help - No Replies

I have made a script in python to perform FTP transfers that will run in crontab every minute.

The script queries the MySQL database and translates..... More

Print this item

  color a string of characters in tkinter
Posted by: atlass218 - Mar-27-2019, 06:34 AM - Forum: GUI - Replies (6)

Hi,
I would like to color two character strings written in a Text tkinter widget according to the status of a check button (check mark or no check)...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... 4 hours ago fosuwxb buran Code sharing
  My goal to be hired worki... 11 hours ago 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... 577351
  Tutorial Requ... 500685
  Web Scraping ... 441010
  Newbie with P... 385051
  New Users Int... 369542
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
Schirag Today
Jacobjoift Today
sophielane Yesterday
Oscar0057 Yesterday
Cromulent Yesterday

User Panel Messages

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