

Name='Monika'

"""

# Printing of string based on positive index values:

print(Name[0])  #Output: M
print(Name[1])  #Output: O
print(Name[2])  #Output: N
print(Name[3])  #Output: I
print(Name[4])  #Output: K
print(Name[5])  #Output: A
print(Name[6])  #OutpuT: Error Message

"""

# Printing of string based on negative index values: 

print(Name[-5]) #Output: O
print(Name[-4]) #Output: N
print(Name[-3]) #Output: I
print(Name[-2]) #Output: K
print(Name[-1]) #Output: A
print(Name[0])  #Output: M
