Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to transform an enumerate object into a dictionary
Post: RE: How to transform an enumerate object into a di...

j.crater, did you run the code you posted. you can't print(my_Dictionary), its a dict. Here's another way to do it: aString = "Mississippi" my_dictionary = dict() enumerated_string = enu...
kmcollins Homework 7 4,635 Feb-11-2018, 11:28 PM
    Thread: New to coding, and could use some help
Post: RE: New to coding, and could use some help

Which IDE are you using. Code completion would help. I use PyCharm, a very professional and complete interactive development environment.
kmcollins General Coding Help 5 4,934 Feb-11-2018, 11:20 PM
    Thread: Interacting with python console while program is running
Post: RE: Interacting with python console while program ...

I visited the pygtk website and downloaded the most current version, which is for Python 2.7 and was released on 2012-02-09. There appears to be no version for Python 3.x and since nothing has been c...
kmcollins GUI 2 3,354 Feb-10-2018, 05:43 PM
    Thread: python modules?
Post: RE: python modules?

Python cares deeply about the amount you indent. To indicate a block of code in Python, you must indent each line of the block by the same amount. A typical amount of indentation for Python is four s...
kmcollins Homework 5 3,241 Feb-10-2018, 04:47 PM
    Thread: Algrbra Package
Post: RE: Algrbra Package

Error:GribouillisError:Don't bother posting on my threads. You've been blocked.
kmcollins Code sharing 23 160,551 Feb-08-2018, 11:26 PM
    Thread: Algrbra Package
Post: RE: Algrbra Package

As part of my algebra package I just wrote a prime number sieve. I hereby place the following code ito the public domain: def primeNumbers(a): "return a list of prime numbers <= a usi...
kmcollins Code sharing 23 160,551 Feb-08-2018, 10:04 PM
    Thread: Algrbra Package
Post: RE: Algrbra Package

wavic, Wrong. Read the documentation for the python package decimal. Here's the intro: "The decimal module provides support for decimal floating point arithmetic. It offers several advantages over...
kmcollins Code sharing 23 160,551 Feb-07-2018, 09:06 PM
    Thread: Algrbra Package
Post: RE: Algrbra Package

I'll look into those. But exact math with 20 significant digits that I control because I wrote it is good enough for all of the cases I can think of. One of the reasons I started this project is tha...
kmcollins Code sharing 23 160,551 Feb-06-2018, 09:54 PM
    Thread: Algrbra Package
Post: RE: Algrbra Package

I wrote a virtual CPU in Java a few years ago. You can do exactly correct math with a couple of registers for the number and one for the exponent. With 64 bits you can get 20 significant digits and ...
kmcollins Code sharing 23 160,551 Feb-06-2018, 04:22 PM
    Thread: Algrbra Package
Post: RE: Algrbra Package

Numpy is a python wrapper around a C implementation of matrix math. That means it uses pointer math for speed. This is very easy for a virus to exploit. Your C professor didn't warn you about this?...
kmcollins Code sharing 23 160,551 Feb-06-2018, 12:02 AM
    Thread: Algrbra Package
Post: RE: Algrbra Package

The code is not tested, and it is not licensed to anyone. If you wish to contribute, I can negotiate a co-development agreement with you. I am not handing out free code which is tested and ready to ...
kmcollins Code sharing 23 160,551 Feb-04-2018, 07:30 PM
    Thread: Algrbra Package
Post: RE: Algrbra Package

I did some work this. The initial, posted yesterday, only took a couple of hours of work. Today was a full day. Warning: this code has not been tested. # Module: Numbers # Date Started:...
kmcollins Code sharing 23 160,551 Feb-03-2018, 11:11 PM
    Thread: Algrbra Package
Post: RE: Algrbra Package

OK, but my reason for making a separate class is to include methods that operate on complex numbers.
kmcollins Code sharing 23 160,551 Feb-02-2018, 11:50 PM
    Thread: Algrbra Package
Post: Algrbra Package

#I'm working on an algebra package for Python. It includes a LinearRelationship class where every instance is #a function of the general form y = mx + b, and I'm planning on adding as many of the ba...
kmcollins Code sharing 23 160,551 Feb-02-2018, 07:42 PM
    Thread: Table Data Model
Post: RE: Table Data Model

Sorry I didn't include any description: This is a data model for any table view which will buffer any relational database table. I will be including more relational features as I work on it. I am...
kmcollins Code sharing 1 2,641 Oct-28-2017, 02:19 AM
    Thread: Table Data Model
Post: Table Data Model

# Class: TableData # Date Started: October 22, 2017 # Author: George Keith Watson, a.k.a. Keith Michael Collins # Copyrights: (c) 2017 George Keith Watson, a.k.a. Keith ...
kmcollins Code sharing 1 2,641 Oct-26-2017, 03:38 PM

User Panel Messages

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