Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Binary tree
Post: RE: Binary tree

(Dec-06-2022, 09:43 PM)deanhystad Wrote: The median, not the mean. The median is the middle value. There will be close to an equal number of values left and right of the median. The mean doesn't ...
AlexPython General Coding Help 3 1,005 Dec-06-2022, 10:58 PM
    Thread: Binary tree
Post: Binary tree

let said that I get a randomly created array of 12 numbers for this tree below instead of having the number picked by me, should I hand-pick the root? or should I let it be one of the random numbers o...
AlexPython General Coding Help 3 1,005 Dec-06-2022, 09:28 PM
    Thread: (off) and (on) sequence
Post: RE: (off) and (on) sequence

Thank you buddy.
AlexPython General Coding Help 6 1,038 Dec-05-2022, 07:25 PM
    Thread: (off) and (on) sequence
Post: RE: (off) and (on) sequence

(Dec-05-2022, 07:57 AM)perfringo Wrote: (Dec-05-2022, 05:54 AM)AlexPython Wrote: those are the ones that will change into a 1 or a 0. What are default values of "those"? The default value of the f...
AlexPython General Coding Help 6 1,038 Dec-05-2022, 03:56 PM
    Thread: (off) and (on) sequence
Post: RE: (off) and (on) sequence

no. I mean something like this [Image: https://i.imgur.com/3ifjRBw.png] The space in the middle of the grid can be ignore i just put it so it looks better, the important is the outside (. or -) those ...
AlexPython General Coding Help 6 1,038 Dec-05-2022, 05:54 AM
    Thread: (off) and (on) sequence
Post: (off) and (on) sequence

Hello. What I trying to do is a sequence of nodes that will be connected to each other and pass power if they are on. I tried doing it as if I was doing the battleship game but it kinda did not work. ...
AlexPython General Coding Help 6 1,038 Dec-05-2022, 01:48 AM
    Thread: Something the code dont work
Post: RE: Something the code dont work

(Oct-17-2022, 06:19 PM)deanhystad Wrote: That's not a compliment. If you aren't learning something I'm doing you no favor. I say that in a good way. You explain everything, so if I'm not learning t...
AlexPython General Coding Help 13 2,296 Oct-17-2022, 08:34 PM
    Thread: Something the code dont work
Post: RE: Something the code dont work

(Oct-17-2022, 06:09 PM)deanhystad Wrote: I would modify ships to be ["S", 3, 1] for [marker, length, level]. I find that the code, especially in Python, looks better if you data instead of code. S...
AlexPython General Coding Help 13 2,296 Oct-17-2022, 06:12 PM
    Thread: Something the code dont work
Post: RE: Something the code dont work

(Oct-17-2022, 04:06 PM)deanhystad Wrote: Why are you putting different sized ships on different boards? I don't see the benefit. And if you want different sized ships on different boards, you need...
AlexPython General Coding Help 13 2,296 Oct-17-2022, 04:23 PM
    Thread: Something the code dont work
Post: RE: Something the code dont work

Well, anyways thanks for the help. I should start from 0 again and not change the goal of the program mid-way just because I can't find how to do something lol. Thanks again <3
AlexPython General Coding Help 13 2,296 Oct-17-2022, 03:30 PM
    Thread: Something the code dont work
Post: RE: Something the code dont work

(Oct-17-2022, 03:09 PM)deanhystad Wrote: (Oct-17-2022, 02:46 PM)AlexPython Wrote: Yea is battleship. I just trying to get the board with (5)ships display on the board randomly. Each S is a ship.Th...
AlexPython General Coding Help 13 2,296 Oct-17-2022, 03:19 PM
    Thread: Something the code dont work
Post: RE: Something the code dont work

(Oct-17-2022, 01:18 AM)Larz60+ Wrote: AlexPython Wrote:I will provide the output when it works and when it doesn't.can't determine if you are showing what works or what doesn't since your matrix is ...
AlexPython General Coding Help 13 2,296 Oct-17-2022, 02:52 PM
    Thread: Something the code dont work
Post: RE: Something the code dont work

(Oct-17-2022, 04:17 AM)deanhystad Wrote: What happens when start_space is 9? If you are trying to play battleship, your method for placing the ships is all wrong. You can' tear a battleship into 4...
AlexPython General Coding Help 13 2,296 Oct-17-2022, 02:46 PM
    Thread: Something the code dont work
Post: Something the code dont work

I have a little problem with this code, it works sometimes, and something it doesn't. I don't know what is causing the problem. beneath, I will provide the output when it works and when it doesn't. im...
AlexPython General Coding Help 13 2,296 Oct-17-2022, 12:39 AM
    Thread: Python-Can I get some help with this ModuleError
Post: RE: Python-Can I get some help with this ModuleErr...

(Sep-24-2022, 08:28 PM)deanhystad Wrote: Accepting hints that you don't understand is a bad idea. I think using hints at all, at this point in your learning, is a bad idea. Pycharm saw you using a...
AlexPython General Coding Help 12 2,175 Sep-24-2022, 08:55 PM
    Thread: Python-Can I get some help with this ModuleError
Post: RE: Python-Can I get some help with this ModuleErr...

(Sep-24-2022, 09:07 AM)deanhystad Wrote: Why did you use "import k as k" or "import k" for that matter? I was having some problems with the code because it was saying that "K" dint have value or som...
AlexPython General Coding Help 12 2,175 Sep-24-2022, 08:23 PM
    Thread: Python-Can I get some help with this ModuleError
Post: RE: Python-Can I get some help with this ModuleErr...

(Sep-23-2022, 12:20 AM)menator01 Wrote: What is k? k is the element the code will be searching in each of the lists. I guess I should change the name? any recommendation?
AlexPython General Coding Help 12 2,175 Sep-23-2022, 09:25 PM
    Thread: Python-Can I get some help with this ModuleError
Post: RE: Python-Can I get some help with this ModuleErr...

Thanks for the help again guys
AlexPython General Coding Help 12 2,175 Sep-23-2022, 09:15 PM
    Thread: Python-Can I get some help with this ModuleError
Post: Python-Can I get some help with this ModuleError

The program works fine if I run it on Pycham but if I try to run it on IDLE 3.9 it displays an error. I already try the (pip install k) but It don't work or maybe I no typing it correctly? or in the r...
AlexPython General Coding Help 12 2,175 Sep-23-2022, 12:02 AM
    Thread: (python) Can i get some help fixing a English to Morse translator? Pls
Post: RE: (python) Can i get some help fixing a English ...

(Sep-12-2022, 01:35 AM)deanhystad Wrote: When I was playing with the program it didn't sound quite right. When playing the dits and dahs you need a rest after each letter. The rest is equal in len...
AlexPython General Coding Help 7 1,636 Sep-12-2022, 02:55 AM

User Panel Messages

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