Skip to content

Instantly share code, notes, and snippets.

View adit-negi's full-sized avatar
🏀
Phew

Adit Negi adit-negi

🏀
Phew
View GitHub Profile
from itertools import permutations
T = int(input())
for i in range(T):
sub_string = str(input())
main_string = str(input())
main_string = ' '.join(main_string.split()) # removing extra whitespaces
sub_string = sub_string.lower() # lowercase
main_string = main_string.lower()
# making all permutations of given string