employer cover photo
employer logo
employer logo

Gaian Solutions India

Is this your company?

Gaian Solutions India interview question

input = "abcd" Output1 = ['b', 'c', 'd', a''] output2 = ['d', 'b', 'a', c''] Output3= so on.. basically strings altered

Interview Answer

Anonymous

2 July 2020

input = "abcd" list = [] for letter in input: result = list.append(letter) shuffled_output = random.shuffle(result) print(shuffled_Output)