Python Work 28-03-24
Python Work 28-03-24
import sys
'''
str1 = "HELLO PYTHON"
print(str1)
mystr = Hello
World # Define string using triple quotes
print(mystr)
mystr = """Hello
World """ # Define string using triple quotes
print(mystr)
print(str1[5])
print(str1)
str1[0:5] = 'HOLAA'
print(str1)
# String concatenation
s1 = "Hello"
s2 = "Asif"
s3 = s1 + s2
print(s3)
'''
for i in enumerate(mystr1):
print(i)
mystr2.strip('*') # Removes all '*' characters from begining & end of the
string
print(mystr2)
mystr4 ="one two three four one two two three five five six seven six seven
one"
print(mystr4)