I have the following code below:
def convertint(prices):
    output_list = []
    
    for alist in prices:
        print (alist)
        price_int = re.match(r'([0-9]{2,3})', alist)
        print (price_int)
        
#         print (price_int.group())
#         output_list.append(price_int.group())
        
    return output_list
    ###
convertint(['$27' , '$149' , '$59' , '$60' , '$75'])
It's output is below:
$27
None
$149
None
$59
None
$60
None
$75
None
I want my regex match in my code to return 27, 149, 59, etc. without the $ but it's returning None when I try to match it.
What am I doing wrong?
 
     
    