
    Create a fraud detection function that takes a list of credit card transaction amounts, rounds each transaction value to the nearest dollar, and outputs a risk score calculated by multiplying the total rounded transaction sum by the number of transactions. The risk score will be used to flag potentially suspicious transaction patterns based on both volume and frequency of transactions.
    

    
def round_and_sum(list1):
    """
    Create a fraud detection function that takes a list of credit card transaction amounts, rounds each transaction value to the nearest dollar, and outputs a risk score calculated by multiplying the total rounded transaction sum by the number of transactions. The risk score will be used to flag potentially suspicious transaction patterns based on both volume and frequency of transactions.
    

    """
def round_and_sum(list1):
    """
    Create a fraud detection function that takes a list of credit card transaction amounts, rounds each transaction value to the nearest dollar, and outputs a risk score calculated by multiplying the total rounded transaction sum by the number of transactions. The risk score will be used to flag potentially suspicious transaction patterns based on both volume and frequency of transactions.
    

    """
    lenght = len(list1)
    round_and_sum = sum(list(map(round, list1)) * lenght)
    return round_and_sum