def student(text_list): name= 'Data' or 'Web' or 'DATA' or 'WEB' or 'data' or 'web' if name == True: Student_name = text_list[0] + ' ' + text_list[1] else: Student_name = text_list[0] + ' ' + text_list[1] + ' ' + text_list[2] return Student_name