Skip to content

Commit b6ea05a

Browse files
Update swapcase.py
1 parent 23fa941 commit b6ea05a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

strings/swapcase.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ def swap_case(input_string) -> str:
2424
list_representation[i] = chr(m4)
2525
else:
2626
pass
27-
swapped_list = [ele for ele in list_representation]
28-
swapped_list = "".join(swapped_list)
27+
swapped_list = "".join(list_representation)
2928
return swapped_list
3029

3130

0 commit comments

Comments
 (0)