pythonat the command prompt. Enter your first name as a string called MyName by typing
MyName = "Marshall"(with your name instead). We can "slice" this string of letters by using the array index notation MyName[start:stop:increment]. For example, try typing the following:
MyName[0:2]
MyName[0:]
MyName[1:2]
MyName[::-1]Finally, as an exercise in "list comprehension", type
for letter in MyName: print letter