#!/usr/bin/env python
# coding: utf-8

# In[3]:


#string
a="hello world"
b='hello world'
print(a)
x='''first line
second line
third line'''
y="""first line
second line"""
print(y)


# In[4]:


str1="omkrit is a good student He lives in varanasi"
print(str1)
print(str1[3])
print(str1[2:10])
print(str1[0:5])
print(len(str1))
print(str1[0:80])


# In[5]:


print(str1[0:14:2])
print(str1[0:38:2])
print(str1[::2])
print(str1[-5:-2])
print(str1[-2:-5])
print(str1.upper())
print(str1.capitalize())


# In[11]:


p="hello omkrit how are you?"
print(p.replace("hello","jj"))
q="     hello   world     "
print(q.strip())


# In[ ]:




