How to extract numbers from a string containing commas? [Solved]
I'm a beginner, working on all the "easy" Code Coach supplementary exercises. Have finished all but 3, but I'm finding the last ones a little difficult. Here is the given task: " Evaluate the area of two different balconies and determine which one is bigger. Input Format Your inputs are two strings where the measurements for height and width are separated by a comma. The first one represents apartment A, the second represents apartment B. Output Format: A string that says whether apartment A or apartment B has a larger balcony. Sample Input '5,5' '2,10' " I have found ways to extract or alter one char in a string, but how can I extract a number > than a single char (like '10' in the Sample Input of the Task)? I think I can solve the task fairly easily if I can learn how to seperate the whole numbers from the string. Hopefully any suggestions will keep in mind the challenge is at "easy" level and should therefore be resolved using a beginners set of tools.