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

Popular posts from this blog

Shopping Bill Generator In python.

Should we start preparation for BCA/MCA from class 11th ? How ?

Python program to check that a list have elements in it or not .