from typing import Tuple


def decimal2dms (decimal:float, 
                 direction:str = 'N')->Tuple[float,float,float,str]:
    """Convert degree in decimal formar to degree in degree-minute-second format.
    """
    assert direction in ['N','E'],'Insert a correct direction [N or E]\n'
    degrees = int(decimal)
    minutes = int (abs((decimal - int(decimal)) * 60))
    seconds = abs((abs((decimal - int(decimal)) * 60)-minutes)*60)
                  
    if direction =='N':
        if decimal <0 :
            direction ='S'
    elif direction =='E':
        if decimal <0:
            direction ='W'
    return (degrees,minutes,seconds,direction)