@@Codebagel This video hit 26,000 views, 5x more than expected, please you make amazing videos, and welll-defined ones, can you make for other companies as well.
Really nice video! Didn't come in with expectations of any good explanations since the video is 20min but covers 5 medium questions but to my surprise it very well did!
Hello, for the Search Suggestions System don't you think it's better this way: def TypeSearch(products,search_word): final = [] i=0 while(i3): proposed_products.sort() final.append(proposed_products[0:3]) else: final.append(proposed_products) i+=1 print(final) ty for the video btw!
The split method creates an array of strings that were surrounded by whitespace in the initial string. So index[0] actually refers to the entire identifier up to the whitespace. The split method on "test 123 456 789" would make an array of ["test", "123", "456", "789"] He was also sorting from index 1 (which is the first word) until the last index (the last word), not just index 1. Not sure if that's what you meant but I figured I'd clarify