message = 'Hello World'

print(message)

#Length of string
print(len(message))

#Slicing
print(message[0:5]) #First five char
print(message[6:])  #6th to last char

#Methods
print(message.lower())
print(message.upper())
print(message.count('Hello')) #1
print(message.find('World')) #6

new_message = message.replace('World', 'Universe')
print(new_message)

#Concatination of String
greetings = 'Hello'
name = 'Sathya'

message = greetings + ', ' + name

print(message)

#Formatted string or using f string
message = f'{greetings}, {name.upper()} .Welcome!'

print(message)


ba76d1ea5b8dc1499a7f6b00bdb6f560ec0cc267
<mask token>

<mask token>
print(message)
print(len(message))
print(message[0:5])
print(message[6:])
print(message.lower())
print(message.upper())
print(message.count('Hello'))
print(message.find('World'))
<mask token>
print(new_message)
<mask token>
print(message)
<mask token>
print(message)

message = 'Hello World'
print(message)
print(len(message))
print(message[0:5])
print(message[6:])
print(message.lower())
print(message.upper())
print(message.count('Hello'))
print(message.find('World'))
new_message = message.replace('World', 'Universe')
print(new_message)
greetings = 'Hello'
name = 'Sathya'
message = greetings + ', ' + name
print(message)
message = f'{greetings}, {name.upper()} .Welcome!'
print(message)

message = 'Hello World'

print(message)

#Length of string
print(len(message))

#Slicing
print(message[0:5]) #First five char
print(message[6:])  #6th to last char

#Methods
print(message.lower())
print(message.upper())
print(message.count('Hello')) #1
print(message.find('World')) #6

new_message = message.replace('World', 'Universe')
print(new_message)

#Concatination of String
greetings = 'Hello'
name = 'Sathya'

message = greetings + ', ' + name

print(message)

#Formatted string or using f string
message = f'{greetings}, {name.upper()} .Welcome!'

print(message)

