original_list = [1, 2, 2, 3, 4, 4, 5] unique_list = [] for item in original_list: if item not in unique_list: unique_list.append(item) print("List with Duplicates Removed (using for loop):", unique_list) -------- can i use this type bro
If kuda venam bro...just unique list ku badhila set create panuga..andha set la for la iterate panra numbers elam add panuga avlotha final ah print the set
in any prog: single loop na order of n if inner loop within another loop order of n^2 if one single loop and another single loop ie not any inner loop is n+n=2n