Write a program to get 3rd and last character of a given string


Topic: Write a program to get 3rd and last character of a given string

Solution

string="Good Night"
print("\nSlicing characters between " +
    "3rd and last character: ") 
print(string[3:-1])



List all Python Programs