I am trying to print some given string in three different ways provided by string methods which are inside a list as strings. Is there a way to convert those strings as methods to use it during loop iteration?
some_string = "hello people!"
string_operations = [".upper()", ".lower()", ".capitalize()"]
for methods in string_operations:
print(some_string+methods)