Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Need Help: Sort of Binary numbers based on 1's present
Post: RE: Need Help: Sort of Binary numbers based on 1's...

I can't read your link... codes are : #Binary conversion cnt_num = int(input("Enter total no of number : ")) num = [] for i in range(cnt_num):    print("Enter numbers:[",i,"]: ",end = '')          n...
abinashj General Coding Help 5 5,101 Jul-25-2017, 12:15 PM
    Thread: Need Help: Sort of Binary numbers based on 1's present
Post: RE: Need Help: Sort of Binary numbers based on 1's...

Enter total no of number : 3 Enter numbers:[ 0 ]: 9 Enter numbers:[ 1 ]: 6 Enter numbers:[ 2 ]: 7 Numbers in list are : [9, 6, 7] 9 1001 count ones are : 2 6 110 count ones are : 2 7 111 count o...
abinashj General Coding Help 5 5,101 Jul-25-2017, 11:55 AM
    Thread: Need Help: Sort of Binary numbers based on 1's present
Post: Need Help: Sort of Binary numbers based on 1's pre...

Question: 1. Find the Binary numbers from the given list of Numbers . 2. sort on ascending order based on the no of 1's present 3. if no of 1's are same , then give preference to its decimal nos. 4. A...
abinashj General Coding Help 5 5,101 Jul-25-2017, 11:33 AM

User Panel Messages

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