String Slicingmachine = "Computer"# print(machine[8]) - Errorprint(machine[3:6]) # prints put from Computerprint(machine[:]) # print whole string
Post a Comment