My python 3 solution for this problem (easy)


#1

def main():
file = open(“input”,“r”)

data = file.readlines()

for i in range(0,len(data)):
    
    s = data[i]
    
    s = list(s)

    if len(s) == 15:
        if s[0] == '(' and s[4] == ')' and s[5] == ' ' and s[9] == '-':
            print(data[i],end="")
    elif len(s) == 13: 
        if s[3] == '-' and s[7] == '-':
            print(data[i],end="")
return 0

if name == ‘main’:
main()