Q:

Write a Python program to reverse strings in a given list of string values

0

Write a Python program to reverse strings in a given list of string values

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

def reverse_strings_list(string_list):
    result = [x[::-1] for x in string_list]
    return result

colors_list = ["Red", "Green", "Blue", "White", "Black"]
print("\nOriginal lists:")
print(colors_list)
print("\nReverse strings of the said given list:")
print(reverse_strings_list(colors_list))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now