Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Counting the number of letters in a string alphabetically
Post: RE: Counting the number of letters in a string alp...

(Mar-06-2019, 10:01 PM)Yoriz Wrote: from collections import Counter import string test_string = 'Sentence Statistics' counter = Counter(test_string) for item, count in counter.most_common(): ...
TreasureDragon General Coding Help 2 2,890 Mar-07-2019, 01:03 AM
    Thread: Counting the number of letters in a string alphabetically
Post: Counting the number of letters in a string alphabe...

This is what I have so far and it is able to print out how many times a letter was printed but in order which it shows up in the string. I want it to first categorize by the number of times it popped ...
TreasureDragon General Coding Help 2 2,890 Mar-06-2019, 09:24 PM
    Thread: Transposing a Matrix WITHOUT numpy
Post: RE: Transposing a Matrix WITHOUT numpy

(Mar-02-2019, 06:55 PM)ichabod801 Wrote: Well, looking at your code, you are actually working in 2D. Your matrices are stored as a list of lists. So you can just use the code I showed you. Note that...
TreasureDragon General Coding Help 5 11,200 Mar-02-2019, 10:00 PM
    Thread: Transposing a Matrix WITHOUT numpy
Post: RE: Transposing a Matrix WITHOUT numpy

(Mar-01-2019, 10:46 PM)ichabod801 Wrote: It's incredibly simple to transpose a 2D matrix in Python: transposed = zip(*matrix)It's so simple, that if you are working in 1D, I would suggest convertin...
TreasureDragon General Coding Help 5 11,200 Mar-02-2019, 04:45 PM
    Thread: Transposing a Matrix WITHOUT numpy
Post: Transposing a Matrix WITHOUT numpy

So our assignment is to ask for user input for two matrices and then multiply them and show the result then switch the result to a transpose. Since I did it in 1D instead of 2D, I have to transpose th...
TreasureDragon General Coding Help 5 11,200 Mar-01-2019, 10:41 PM
    Thread: Collatz Conjecture Formatting
Post: RE: Collatz Conjecture Formatting

(Feb-11-2019, 10:34 PM)ichabod801 Wrote: Set max_num to number at the start of the loop. Each time through the loop, change max_num to number if number is higher than max_num (note: there's a really...
TreasureDragon General Coding Help 2 2,373 Feb-11-2019, 10:39 PM
    Thread: Collatz Conjecture Formatting
Post: Collatz Conjecture Formatting

Hi everyone, So I figured out how to set up the technical aspect of the Collatz conjecture as well as making it print out the number of steps. However, I am required to print out everystep numericall...
TreasureDragon General Coding Help 2 2,373 Feb-11-2019, 09:43 PM

User Panel Messages

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