FunnyAlgorithms icon indicating copy to clipboard operation
FunnyAlgorithms copied to clipboard

simpler python code for beginners

Open parthivghose2919 opened this issue 8 months ago • 1 comments

-Does not use any additional libraries. -Defines a calculate_flames function that takes two names as input. -Converts names to lowercase and removes spaces. -Creates dictionaries to count the frequency of each letter in both names. -Calculates the total count of common letters in both names. -Uses a while loop to iteratively remove one letter from the FLAMES string based on the total count until only one letter remains. -Defines a dictionary to map each letter of FLAMES to a corresponding relationship status. -Returns the relationship corresponding to the remaining letter in FLAMES

parthivghose2919 avatar Oct 24 '23 06:10 parthivghose2919

Hey @ReciHubBot Please Accept the PR where in I have addresed the issue #1137 and made changes in the previous code to make it simpler and beginner friendly...ThankYou!!!!!!

parthivghose2919 avatar Oct 24 '23 06:10 parthivghose2919