# -*- coding: utf-8 -*-
"""
Created on Tue Dec  4 15:10:40 2018

@author: kmuthu2
"""

str1 = 'Py for ML '
str1[0]
str1[-3]
str2 = 'AI'
len(str1)

str1[-9]

str1[0:6]  #0 to 5th index it'll take

str1[::2] #Select every second item

str1 += str2

str1 *4         #Prints 4 time


str1.lower()

str1.replace('for','code for')

str1.count('Py')



str1.find('hii')
str1.find('ML')


#If answer is -1 not found else returns the index of found str

str1.capitalize()
