string in programming
a="Hello"
b="Avinash"
print(a,b)
a="My name is Avinash"
print(a)
a="""My name is Avinash.I am come to keeramangalam,str(age(19)"""
print(a)
a="Avinash"
print(a[4])
a="Avinash"
print(len(a))
txt="The best beauitiful in india"
print("India" in txt)
a="Hello world"
print(a.upper())
a="Hello world"
print(a.lower())
a="Helllo world"
print(a.replace("h","r"))
a="Hello world"
print(a.strip())
a="Hello"
b="Avinash"
c=(a b)
print(c)
a="Hello"
b="world"
print(a "" b)
age=10
txt=f"My name is Avinash,Iam{age}"
print(txt)
o/p
Hello Avinash
My name is Avinash
My name is Avinash.I am come to keeramangalam,str(age(19)
a
7
False
HELLO WORLD
hello world
Helllo world
Hello world
HelloAvinash
Helloworld
My name is Avinash,Iam10
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3