have 2 functions. first one generates a list and the second one checks if theres duplicates. if theres duplicates it returns True
so i want to call function 2 from function 1 and if it returns true do something heres my code
import random
def x(list):
    for i in range(len(list)):
        count = 0
        for k in range(len(list)):
            if list[i] == list[k]:
                count += 1
            if count > 1:
                return True
    if count == 1:
        return False
def generated_list(N):
    list = []
    for i in range(N):
        list.append(random.randint(1, 365))
    x(list)
if generated_list(25) is True:
   print('is true')
 
    