Permutation and combination 4 letter September 10, 2021 Get link Facebook X Pinterest Email Other Apps L=[]c=0for i in range(4): L.append(input('Enter the characters-')) for i in L: for j in L: for k in L: for m in L: if i!=j and i!=k and i!=m and j!=k and j!=m and k!=m : print(i,j,k,m) c=c+1print(c) Comments Python codes for my future self;)#welcome_backSeptember 10, 2021 at 6:25 AMwell, create a code that just not only takes 4 letters but take n letters The n is an input from userReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
well, create a code that just not only takes 4 letters but take n letters
ReplyDeleteThe n is an input from user