No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I want to design: 1. address class ->using dictionary data structure where items are; state, city and street for individual person 2. name class -> person's first and last name 3. display class -> searches for the given name and displays the address of that particular name my questions are: … |
|
Here is the problem: a function that takes two strings and removes from the first string any character that appears in the second string. eg. if the first string is “[B]IamLearningPython[/B]” and the second string is “[B]aeiou[/B]” the result is “[B]mLrnngPythn[/B]”. I've written the code for this, but I can … |
|
I want to explain my code to you. 1. this code is to search for the given number whether it is present in the list or not. 2. first if statement returns the value of row if the i/p number is in the first column 3. if the given number … |
|
grid = [[0,0,0][0,0,0][0,0,0]] user fills the gird simultaneously. Now I want to make a list of empty squaes of the gird. Suppose user has filled: grid [col1][row1] , grid [col3][row1], grid [col3][row2]. Now I need a list with indexes of the empty list i.e. emptyGrid = [1,2,4,5,7,8,9] First I've to … |