Python Tips and Tricks || Help you in Company Interviews #1


Hello Friends,

In this video you will get some tips and tricks to have your programming skill better.

If you have not subscribed to the channel please hit the subscribe button and press the bell icon. You can connect with me on social messaging apps also.

Telegram :
WhatsApp :

Jai Hind

#Python #PythonTipsAndTricks #TipsAndTricks



One Comment

  • Try2Catch
    November 27, 2020

    More ways to do the first one:

    #No need to explicitly iterate over both lists, just do the shorter one or whichever is more important
    common_num = [a for a in list_a if a in list_b]

    #if only unique elements are needed
    common_num = list(set(list_a) & set(list_b))

Write a comment