Question d’entretien chez Visteon

program to reverse a string

Réponse à la question d'entretien

Utilisateur anonyme

5 août 2024

def rev_str(strings): arr1=[] for i in strings: arr1.append(i) rev_list = reversed(arr1) arr2=[] for i in rev_list: arr2.append(i) rev_string="" for i in arr2: rev_string += i return rev_string strings=input('Enter the string') print('The reversed String is:') rev_str(strings)