Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Coloured text in the terminal works in Linux but not Windows
Post: RE: Coloured text in the terminal works in Linux b...

Thanks for the info! I'll have to check those out.
Flexico General Coding Help 2 2,653 Aug-26-2019, 10:44 PM
    Thread: Coloured text in the terminal works in Linux but not Windows
Post: Coloured text in the terminal works in Linux but n...

I'm using the syntax "\033[31;40mRed\033[37;40m" for coloring text in the terminal, and it works perfectly on my Linux laptop, but when I installed Python on my Windows PC and tried running my code, t...
Flexico General Coding Help 2 2,653 Aug-26-2019, 09:41 PM
    Thread: Importing Custom Modules in Python 3
Post: Importing Custom Modules in Python 3

I'm working on updating my scripts from Python 2 to 3, and I'm running into trouble with importing my custom modules. My __init__.py works fine when I run it directly, but when I run a script from out...
Flexico General Coding Help 1 2,544 Aug-24-2019, 06:12 PM
    Thread: Calculating Pandigital Numbers
Post: RE: Calculating Pandigital Numbers

(Jan-28-2017, 01:08 AM)micseydel Wrote: (Jan-28-2017, 12:59 AM)Flexico Wrote: I'm searching for the ones that follow the rule of the first digit being divisible by 1, the first two digits being di...
Flexico General Coding Help 6 8,077 Jan-28-2017, 02:00 AM
    Thread: Calculating Pandigital Numbers
Post: RE: Calculating Pandigital Numbers

(Jan-27-2017, 11:43 PM)Ofnuts Wrote: (Jan-27-2017, 08:43 PM)Flexico Wrote: Inspired by a passage in the book Things to Make and Do in the Fourth Dimension, I threw together an algorithm to find al...
Flexico General Coding Help 6 8,077 Jan-28-2017, 12:59 AM
    Thread: Calculating Pandigital Numbers
Post: Calculating Pandigital Numbers

Inspired by a passage in the book Things to Make and Do in the Fourth Dimension, I threw together an algorithm to find all existing pandigital numbers in a given base. It uses a brute force method uti...
Flexico General Coding Help 6 8,077 Jan-27-2017, 08:43 PM
    Thread: Negative numbers and fractional powers
Post: Negative numbers and fractional powers

Python doesn't like it when I ask it things like, (-6)**(1/3). I can at least get some answer by changing it to (-6+0j)**(1/3), and it gives me a complex answer, but that's not quite complete, because...
Flexico General Coding Help 1 4,847 Dec-08-2016, 03:32 PM
    Thread: Sympy Integration
Post: RE: Sympy Integration

All right, I added to the Github thread. Hopefully it gets resolved! =]
Flexico General Coding Help 5 7,428 Dec-07-2016, 07:22 AM
    Thread: Python Launch Options
Post: RE: Python Launch Options

Ok, you guys here completely misunderstood what I was asking.
Flexico General Coding Help 6 6,967 Dec-07-2016, 06:58 AM
    Thread: Python Launch Options
Post: RE: Python Launch Options

Got answered here: http://www.linuxquestions.org/questions/...ost5638499
Flexico General Coding Help 6 6,967 Dec-06-2016, 11:18 AM
    Thread: Python Launch Options
Post: RE: Python Launch Options

What I want is for the Python window to stay open so I can input further commands. All the script does is import a few modules.
Flexico General Coding Help 6 6,967 Dec-06-2016, 02:46 AM
    Thread: Python Launch Options
Post: Python Launch Options

I'm not sure if this is more a Python question or a Linux question, but here goes: I have a script file tied to the key combo Ctrl+Alt+P to navigate to my script folder and run Python. That part works...
Flexico General Coding Help 6 6,967 Dec-06-2016, 02:28 AM
    Thread: Sympy Integration
Post: RE: Sympy Integration

I did the same thing you did, with the exception of "init_printing()". Here, I started from scratch again: Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "...
Flexico General Coding Help 5 7,428 Dec-06-2016, 01:35 AM
    Thread: Sympy Integration
Post: Sympy Integration

I couldn't find a Sympy forum, so I figured I'd post it here. Please explain this to me: >>> integrate(sin(x**2),x)                       ⎛  ___  ⎞            ___   ___         ⎜╲╱ 2 ⋅x⎟    ...
Flexico General Coding Help 5 7,428 Dec-06-2016, 01:17 AM
    Thread: Fractional Exponent Question
Post: RE: Fractional Exponent Question

That's the equivalent of -(6**(1/3)) because the power operator takes precedence over the negation sign. Not the same as what I'm trying to do. It does give the correct answer in this case, but it mig...
Flexico General Coding Help 2 5,142 Dec-04-2016, 01:00 AM
    Thread: Fractional Exponent Question
Post: Fractional Exponent Question

This response had me confused for a while: >>> (-6)**(1/3) (0.9085602964160701+1.5736725951324722j) >>> abs(_) 1.8171205928321397 >>> (-_)**3 -6.0Until I realized that in th...
Flexico General Coding Help 2 5,142 Dec-03-2016, 08:07 PM

User Panel Messages

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