reverseString

Run Settings
LanguagePython
Language Version
Run Command
def reverseString(input_string): print(f"input string: {input_string}") output_string = [] for idx in range(len(input_string)): output_string.append(input_string[-1*idx-1]) return ''.join(output_string) sample1 = "Hi my name is Arthur" result1 = reverseString(sample1) print(f"result1: {result1}") assert(result1=="ruhtrA si eman ym iH")
Editor Settings
Theme
Key bindings
Full width
Lines