Header Ads

Responsive Ads Here

String Slicing

 String Slicing



machine = "Computer"


# print(machine[8])   - Error

print(machine[3:6]) # prints put from Computer

print(machine[:])  # print whole string

Powered by Blogger.