Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Park-Miller Algorithm
Post: RE: Park-Miller Algorithm

I want to store my string of letters that can follow the the previous letter. Then I will compare this string to the string that contains all the letters associated with the next number in the phone n...
hughng92 Homework 12 11,053 Feb-20-2017, 10:12 PM
    Thread: Park-Miller Algorithm
Post: RE: Park-Miller Algorithm

Oh I have a bunch of "add" method. class Random: def __init__(self,seed): self.n = seed def next(self,range): n = ((pow(7,5)*self.n)%(pow(2,31)-1)) m = (n)%(int(range))...
hughng92 Homework 12 11,053 Feb-20-2017, 09:31 PM
    Thread: Park-Miller Algorithm
Post: RE: Park-Miller Algorithm

Thank you. My class "Mnemonic" is used to generate a name out of a given phone number. For example, if the input of phone number is 6862377, then some possible outputs are:  print('"' + m.make('686237...
hughng92 Homework 12 11,053 Feb-20-2017, 06:06 PM
    Thread: Park-Miller Algorithm
Post: RE: Park-Miller Algorithm

Thank you. How do I use the python code tag?
hughng92 Homework 12 11,053 Feb-20-2017, 05:37 PM
    Thread: Park-Miller Algorithm
Post: RE: Park-Miller Algorithm

OK I am sorry about that. The problem I am having right now is string index out of range. I can explain how I came up with my function "make". I will take an example for a number "651 555 4" 1. First,...
hughng92 Homework 12 11,053 Feb-20-2017, 07:00 AM
    Thread: Park-Miller Algorithm
Post: RE: Park-Miller Algorithm

Thanks. I did not mean to put my whole code up here and asked people to look at my code and fix the errors for me. Here is my complete code. class Random:    def __init__(self,seed):        self.n = s...
hughng92 Homework 12 11,053 Feb-20-2017, 06:37 AM
    Thread: Park-Miller Algorithm
Post: Park-Miller Algorithm

Hello, I am trying to pick up some projects online to practice coding and so far I have faced a challenge. If we take a look at the US keypad on a standard keyboard, it has ten keys for the digits...
hughng92 Homework 12 11,053 Feb-20-2017, 05:45 AM
    Thread: Solve an equation
Post: RE: Solve an equation

Thank you so much. I appreciate it. At this point, I have learned Python for two days ^^, so forgive my inexperience. I will try to fix my code basing on your advice. So right now, I have fixed part ...
hughng92 Homework 3 4,761 Jan-26-2017, 05:21 AM
    Thread: Solve an equation
Post: Solve an equation

Hello, I am stuck with printing the wrong result and I have not found out how to fix it. I am asked to write a program that when you input something like: print(solve('x', (('a', '-', 'x'), '=', 'c'))...
hughng92 Homework 3 4,761 Jan-25-2017, 06:57 PM

User Panel Messages

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