Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Fixing my backup function
Post: RE: Fixing my backup function

(Jun-14-2019, 11:27 PM)micseydel Wrote: You definitely didn't reduce it enough, if you did it at all. Most questions (including this one) can usually be reduced to 5-10 lines of code, you're far les...
Beginner_coder123 Homework 4 3,045 Jun-15-2019, 07:56 PM
    Thread: Fixing my backup function
Post: RE: Fixing my backup function

(Jun-14-2019, 06:30 PM)Yoriz Wrote: Explain what you expect to happen and what is actually happening and any errors received in error tags. also can the code be reduced to just the part in question....
Beginner_coder123 Homework 4 3,045 Jun-14-2019, 06:42 PM
    Thread: Fixing my backup function
Post: Fixing my backup function

Hello everyone, I'm trying to fix some methods such as "restore a backup" in my public library system.. But I've been stuck for weeks. Can someone help me out? The code is below, but it's a lot. Not t...
Beginner_coder123 Homework 4 3,045 Jun-14-2019, 06:22 PM
    Thread: Generalized Dice refactoring
Post: RE: Generalized Dice refactoring

(Feb-04-2019, 10:03 PM)nilamo Wrote: (Feb-04-2019, 09:20 PM)Beginner_coder123 Wrote: number = random.randint(0,len(die)-1)This is the same, and clearer: number = random.randint(len(die)) But this ...
Beginner_coder123 Homework 2 2,236 Feb-05-2019, 08:45 AM
    Thread: Generalized Dice refactoring
Post: Generalized Dice refactoring

Hello everyone, I need some help with refactoring my code for an assignment. The assignment is as following: a. Solve problem 205 as a probabilistic experiment. This will not get you to 7 digits preci...
Beginner_coder123 Homework 2 2,236 Feb-04-2019, 09:20 PM
    Thread: Some exercises I need help with.
Post: Some exercises I need help with.

Hello, I have an exercise where I have to calculate the probability from rolling a dice. I do have the probability from 1 side, but I need the probabality from all sides. So my problem is generalizing...
Beginner_coder123 Homework 2 2,817 Dec-02-2018, 02:15 PM
    Thread: Python Connect 4 refactoring
Post: RE: Python Connect 4 refactoring

Appreciated!
Beginner_coder123 Homework 6 3,791 Oct-29-2018, 05:30 PM
    Thread: Python Connect 4 refactoring
Post: RE: Python Connect 4 refactoring

(Oct-28-2018, 01:47 AM)ichabod801 Wrote: I tried a couple times to get a diagonal win for player 2 with 3 pieces and couldn't do it. But the second for loop in diag_check is messed up. It's always p...
Beginner_coder123 Homework 6 3,791 Oct-28-2018, 09:25 PM
    Thread: Python Connect 4 refactoring
Post: RE: Python Connect 4 refactoring

(Oct-27-2018, 09:02 PM)ichabod801 Wrote: What exactly is the problem you are having? I would note that the first thing you want to do is get rid of the global statements. At least pass variables be...
Beginner_coder123 Homework 6 3,791 Oct-27-2018, 11:50 PM
    Thread: Python Connect 4 refactoring
Post: Python Connect 4 refactoring

Hello, I was wondering if it's possible to refactor this piece of code to make a connect 4 game? I understand that it can be done way more efficiently, but I'm stuck.. Could somebody help me out? gri...
Beginner_coder123 Homework 6 3,791 Oct-27-2018, 03:53 PM

User Panel Messages

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