
a = " this is an example"
b = 'this is a simple quote'
c = "hello worls give me \"quotes\""
d = "hello there \
this is a single string "

print(a)
print(b)
print(c)
print(d)

print("****************************************************")

first = "nyc"[0]
city = "chicago"
ab = city[1]
print(ab)
print(first)

"""
common used methods in string
len()
lower()
upper()
str()
"""

str1 = "Hello"
print(str1 + " " +str(222))


print("*******************************************")

# sub string methods
a1 = "1abc2abc3abc4abc"
print(a1.replace('abc','ABC'))
sub = a1[1:6]
step = a1[1:6:2]

print(sub)
print(step)


# Formatting the screan

city = 'nyc'
event = 'musical show'
print("welcome to the %s. Enjoy the %s" %(city, event))
98f4f5c57f387eb16223135a5ed19844dcce20be
<mask token>

<mask token>
print(a)
print(b)
print(c)
print(d)
print('****************************************************')
<mask token>
print(ab)
print(first)
<mask token>
print(str1 + ' ' + str(222))
print('*******************************************')
<mask token>
print(a1.replace('abc', 'ABC'))
<mask token>
print(sub)
print(step)
<mask token>
print('welcome to the %s. Enjoy the %s' % (city, event))

a = ' this is an example'
b = 'this is a simple quote'
c = 'hello worls give me "quotes"'
d = 'hello there this is a single string '
print(a)
print(b)
print(c)
print(d)
print('****************************************************')
first = 'nyc'[0]
city = 'chicago'
ab = city[1]
print(ab)
print(first)
<mask token>
str1 = 'Hello'
print(str1 + ' ' + str(222))
print('*******************************************')
a1 = '1abc2abc3abc4abc'
print(a1.replace('abc', 'ABC'))
sub = a1[1:6]
step = a1[1:6:2]
print(sub)
print(step)
city = 'nyc'
event = 'musical show'
print('welcome to the %s. Enjoy the %s' % (city, event))


a = " this is an example"
b = 'this is a simple quote'
c = "hello worls give me \"quotes\""
d = "hello there \
this is a single string "

print(a)
print(b)
print(c)
print(d)

print("****************************************************")

first = "nyc"[0]
city = "chicago"
ab = city[1]
print(ab)
print(first)

"""
common used methods in string
len()
lower()
upper()
str()
"""

str1 = "Hello"
print(str1 + " " +str(222))


print("*******************************************")

# sub string methods
a1 = "1abc2abc3abc4abc"
print(a1.replace('abc','ABC'))
sub = a1[1:6]
step = a1[1:6:2]

print(sub)
print(step)


# Formatting the screan

city = 'nyc'
event = 'musical show'
print("welcome to the %s. Enjoy the %s" %(city, event))