Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 7,394
» Latest member: Donald
» Forum threads: 13,405
» Forum posts: 66,925

Full Statistics

Online Users
There are currently 144 online users.
» 3 Member(s) | 141 Guest(s)
buran, chrismc, gontajones

Latest Threads
Log WSGI directly to stdo...
Forum: Web Development
Last Post: ThomasT
6 minutes ago
» Replies: 4
» Views: 49
Genetic Algorithm
Forum: General Coding Help
Last Post: rajeev1729
16 minutes ago
» Replies: 3
» Views: 488
Forum: General Coding Help
Last Post: buran
36 minutes ago
» Replies: 1
» Views: 18
API -> pandas -> database
Forum: Data Science
Last Post: chrismc
1 hour ago
» Replies: 0
» Views: 7
unexpected sub result aft...
Forum: General Coding Help
Last Post: buran
2 hours ago
» Replies: 1
» Views: 39
Compare words Python
Forum: General Coding Help
Last Post: xSphere
2 hours ago
» Replies: 2
» Views: 30
TypeError: __str__ return...
Forum: General Coding Help
Last Post: jolinchewjb
2 hours ago
» Replies: 5
» Views: 75
I need help with loop one...
Forum: General Coding Help
Last Post: buran
2 hours ago
» Replies: 3
» Views: 111
TypeError: __init__() mis...
Forum: Homework
Last Post: Pythonhelp82
5 hours ago
» Replies: 6
» Views: 156
Repair function for a nes...
Forum: General Coding Help
Last Post: Alfalfa
6 hours ago
» Replies: 0
» Views: 84

  Weird scoping error
Posted by: Stef - Jan-20-2019, 03:58 PM - Forum: General Coding Help - Replies (3)

I bumped into this weird scoping error and I have no clue what's going on.

#module main

FIXED = 0 # banks spend a fixed ..... More

Print this item

  getting started
Posted by: b4iknew - Jan-20-2019, 02:27 PM - Forum: General Coding Help - Replies (3)

Hello and good morning all.
I want to make it clear, I am not a programmer by any streach of the imagination. I just started trying to learn py..... More

Print this item

  Assertion Error
Posted by: Mateoo - Jan-20-2019, 02:20 PM - Forum: General Coding Help - Replies (2)

Hello everyone,
I've got problem with assertion. It seems that it should work, but after running the program I receive AssertionError. Do you have a..... More

Print this item

  Attribute error print statement error
Posted by: jamshaid1997 - Jan-20-2019, 02:11 PM - Forum: General Coding Help - Replies (1)

#Imported modules used within the program
import pytsk3
import struct
import pyewf
import datetime
import hashlib
from Registry impor..... More

Print this item

  Sum of Numbers in a List
Posted by: MrGoat - Jan-20-2019, 01:12 PM - Forum: General Coding Help - Replies (7)

So this was the question description :
# Write a Python function to sum all the numbers in a list.
# Sample List : (8, 2, 3, 0, 7)
# Expected Out..... More

Print this item

  Get lyrics from songs playing in spotify - Need help making it better
Posted by: thorep - Jan-20-2019, 01:09 PM - Forum: Completed Scripts/Snippets - Replies (1)

Check out this simple project. Im just starting out in python. Anything I can do better?
Maybe use flask to make it a webpage.
Or some code that lis..... More

Print this item

Posted by: Programming_Noob - Jan-20-2019, 12:40 PM - Forum: General Coding Help - Replies (1)

#Import module
import random

#Start randomgenerator

#Random values and calculation
a= random.randint(1,10)
b= r..... More

Print this item

  can anybody explain what such function doing
Posted by: cdbs - Jan-20-2019, 12:37 PM - Forum: Data Science - Replies (1)

im trying to understand some piece of code written by guy with 10+ experience of coding,
he won Data science competition and put his code here:..... More

Print this item

  increment variable in while loop
Posted by: Naito - Jan-20-2019, 12:20 PM - Forum: General Coding Help - Replies (3)

hello, i have a question please, why the while loop dosen't store the updated integer?
[output]guess the number: 4
better luck next time
the random nu..... More

Print this item

  Max of 3 numbers
Posted by: MrGoat - Jan-20-2019, 11:57 AM - Forum: General Coding Help - Replies (2)

Hi, so I am supposed to write a function to find the maximum of 3 numbers. Initially I wanted to write a function that takes in 3 values and analyzes ..... More

Print this item

  TypeError: __init__() missing 3 required positional arguments
Posted by: Pythonhelp82 - Jan-20-2019, 11:27 AM - Forum: Homework - Replies (6)

Hi Guys,

I am studying a mark scheme answer from a previous exam question and when following the mark scheme on Python , I am presented with an error..... More

Print this item

  Does anyone know how to scrape/find this data?
Posted by: randomguy - Jan-20-2019, 11:21 AM - Forum: General Coding Help - Replies (8)

No one seems to know how to do this. Maybe it's not possible.

I need to find out how quickly particular expired domains get registered after their ..... More

Print this item

  extracting data from a list in a file
Posted by: clarablanes - Jan-20-2019, 11:18 AM - Forum: General Coding Help - Replies (2)

good morning guys,

I am trying to extract the descriptor in bold in a list (the list is in a file):

This is the content of the file: training_se..... More

Print this item

  Help to understand output
Posted by: Pippi - Jan-20-2019, 08:59 AM - Forum: Homework - Replies (1)

Hi, I have loaded a lot of files under one variable. The output looks like this:

[Seq('KATIPSESP', ProteinAlphabet()), Seq('PSESPFAAA', Prot..... More

Print this item

  Index out of range error
Posted by: shikhajain07 - Jan-20-2019, 06:46 AM - Forum: General Coding Help - Replies (2)

Hi Everyone,
I am trying to create a sublist which uses a while loop to return a sublist of the input list. The sublist should contain the same value..... More

Print this item

  List of dictionaries
Posted by: bob_for_practice - Jan-20-2019, 06:22 AM - Forum: General Coding Help - Replies (2)

I've a:
input_list = [{'1':'a'},{'2':'b'},{'3':'c'},{'1':'d'},{'2':'e'},{'4':'f'},{'1':'g'},{'3':'h'}]

I need:
output_list = [{'1':..... More

Print this item

  KeyError when merging
Posted by: kbrummert - Jan-20-2019, 03:13 AM - Forum: General Coding Help - Replies (2)

I get a KeyError when merging two data frames, even though I have confirmed that both have dt as a name and both are of the same data type.

[python..... More

Print this item

  permuting a list of lists
Posted by: Skaperen - Jan-20-2019, 02:28 AM - Forum: General Coding Help - Replies (2)

suppose i have a list of lists, where each inner list begins with its name followed by a sequence of numbers. i want to have nested loops that go tho..... More

Print this item

  spyder - won't show results in console
Posted by: kbrummert - Jan-20-2019, 01:11 AM - Forum: General Coding Help - No Replies

In Spyder, when I click run file, all it does is output the runfile command. It doesn't show results on the console, but when I run selection, it does..... More

Print this item

  Brute force password breaker
Posted by: Truman - Jan-20-2019, 01:08 AM - Forum: Homework - Replies (7)

[i]create a list of word strings by reading this file. Then loop over each word in this list, passing it to the decrypt() method. If this method retur..... More

Print this item

  Executable not working (Anaconda, Win7 32 bit)
Posted by: Archangelos - Jan-20-2019, 12:47 AM - Forum: General Coding Help - Replies (1)

I wrote a piece of code in Python using Anaconda 32 bit.
The code gets the log page from the web server of 17 satellite receivers.

The code in j..... More

Print this item

  I love the simplicity of Python but have a question
Posted by: Jeff_Waldrop - Jan-20-2019, 12:24 AM - Forum: General Coding Help - Replies (5)

Can Python code be compiled as an EXE say to run inside a Win Console window?


Print this item

  Quick Help - Timers - Need Small Solution for Working Code
Posted by: EwH006 - Jan-19-2019, 10:17 PM - Forum: General Coding Help - Replies (2)

Good Evening,

I am looking to get some help as programming is not my game, I am into networking.

To explain intentions:

This code is being us..... More

Print this item

  Waiting in a text adventure
Posted by: StickyLizard - Jan-19-2019, 09:55 PM - Forum: General Coding Help - Replies (1)

I just started learning Python this week and after doing a few simple scripts, I've started work on a simple text adventure, I'm trying to create diff..... More

Print this item

  4-Bit Computer Simulation
Posted by: PKMindBlow - Jan-19-2019, 09:04 PM - Forum: Completed Scripts/Snippets - Replies (2)

So...I've been working on this little 4 bit computer simulation. It's very simple, it uses just about 16 instructions in a version of assembly languag..... More

Print this item

  set marker goto marker??
Posted by: tsmspace - Jan-19-2019, 07:42 PM - Forum: News and Discussions - Replies (5)

Has it ever been considered for python to allow for a goto command??
instead of line numbers, one could place named or numbered markers, and then th..... More

Print this item

  code help to convert log file to csv format
Posted by: bmunagala - Jan-19-2019, 07:01 PM - Forum: General Coding Help - Replies (3)

Need to convert a logfile that will have some information into a csv format.

Sample Data:[output]
Info type: PERSON_NAME; Count: 25
Info type: L..... More

Print this item

  Python connect to Sybase IQ
Posted by: FORTITUDE - Jan-19-2019, 06:28 PM - Forum: General Coding Help - Replies (1)

Hi Team,

I am trying to use sqlanydb Python API to invoke a stored procedure deployed in Sybase IQ. I am calling this stored procedure successfully..... More

Print this item

  Finding and storing all string with character A at middle position
Posted by: Pippi - Jan-19-2019, 06:09 PM - Forum: Homework - Replies (2)


I need to find all strings that have particular characters at a certain index and store those words in a list. Eg; I want to find all strings ..... More

Print this item

  Lots of text objects?
Posted by: MuntyScruntfundle - Jan-19-2019, 03:50 PM - Forum: Game Development - Replies (1)

Hi there.

Im writing a monitor app, it gathers loads of data and gives a graphical representation. And, I'd like to add certain numbers as text. ..... More

Print this item

  bytecodes and virtual machine?
Posted by: insearchofanswers87 - Jan-19-2019, 03:44 PM - Forum: General Coding Help - Replies (1)

I thought I saw a reference somewhere that, like Java, Python (CPython?) "compiles" to bytecodes which are executed by a virtual machine.

Is that t..... More

Print this item

  export PDF to excel or csv
Posted by: prem2179 - Jan-19-2019, 03:34 PM - Forum: General Coding Help - Replies (1)


I want to extract tables from PDF and extract it to CSV. i have tried:

1. tabula: It gives error: java` command is not found from this ..... More

Print this item

  for n in range(x,y) ??
Posted by: MuntyScruntfundle - Jan-19-2019, 03:31 PM - Forum: General Coding Help - Replies (2)

Why does
>> for n in range(1,5)
give 4 iterations?

>> for n in range(0,5)
give 4 iterations?

>> for n in tange(1,6)
give 5 iterations?

Su..... More

Print this item

  # of bytes used to store a Unicode character
Posted by: insearchofanswers87 - Jan-19-2019, 02:46 PM - Forum: General Coding Help - Replies (3)

I read somewhere that Python 3 uses 2 or 4 byte Unicode characters depending on how the particular implementation was built.

1. Does Python 3 alway..... More

Print this item

  AttributeError: 'int' object has no attribute 'reindex'
Posted by: vladponcea - Jan-19-2019, 02:36 PM - Forum: General Coding Help - Replies (3)

I got stuck on this error with my code. Basically I am using openpyxl and tkinter to create a program that stores data in an excel file. Every time I ..... More

Print this item