Some string datatype functions slicing etc.
Here is my Python code related about string datatype.
#Day1
And other string datatypes commands.
like length of our string and slicing of that string.
#mystr = "anant is a good boy"
#print(len(mystr))
#print(mystr[0::])
#x="anant is an Intelligent boy"
#print(len(x))
#print(x[1:19:-1])
print("enter your name")
x=input()
print(len(x))
y='anant'
print(type(x),print((y)))
Comments
Post a Comment