python3 code
Intuition\nThis method takes in a list of strings called details and returns an integer.\n\nThe code iterates over each string in the details list and for each 
# Intuition\nThis method takes in a list of strings called details and returns an integer.\n\nThe code iterates over each string in the details list and for each string, it extracts the last two characters and concatenates them into a new string m.\n\nThe new string m is appended to a list l.\n\nThen, the code converts each element in the list l into an integer and stores them in a new list g.\n\nFinally, the code counts the number of elements in g that are greater than 60 and returns the count.\n\n# Approach\nThe approach for the provided code is to count the number of seniors in a group of people based on their age.\n\nThe code takes in a list of strings called details, where each string represents a person\'s details, such as name and age.\n\nThe code iterates over each string in the details list and extracts the last two characters of each string, which represents the person\'s age.\n\nThe extracted ages are concatenated into a new string m and stored in a list l.\n\nThe code then converts each element in the list l into an integer and stores them in a new list g.\n\nFinally, the code counts the number of elements in g that are greater than 60, which represents the number of seniors in the group, and returns the count.\n# Complexity\n- Time complexity:\nO(n*m)\n\n- Space complexity:\nO(n)\n# Code\n```\nclass Solution:\n    def countSeniors(self, details: List[str]) -> int:\n        count1 = 0\n        l = []\n        for i in range(len(details)):\n            s = details[i]\n            for j in range(len(s)):\n                if(j>=len(s)-2):\n                    u = s[-4]\n                    y = s[-3]\n                    m = u+y\n            l.append(m)\n        g = [int(i) for i in l]\n        for i in g:\n            if(i>60):\n                count1 = count1+1 \n        return count1\n        \n```
['Python3']