Chapter 01: Basic Python Programming

the string “hello” is “built-in” the code but could be made a variable instead. This would make the method more flexible and changeable by simply changing the value of the variable, here my_string. my_list = []my_string = "hello"for char in my_string: my_list.append(char)print(my_list) ['h', 'e', 'l', 'l', 'o'] ................
................