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

Single Inheritance, multiple inheritance and multilevel inheritance in python.

Git Commands.

Using class objects, Instance variables, and class variables, class methods and static method in python