Slicing in python programming

avinash_mathi_483b018e36b

Avinash Mathi

Posted on September 14, 2024

Slicing in python programming

slicing prpgramming
a="Avinash"
print(a[:])
b="keeramangalam"
print(b[3:])
c="Hello Avinash"
print(c[4:])
d="Hello world"
print(c[:4])
e="Keeramangalam"
print(e[:-2])
g="Keeramangalam"
print(g[-5:-2])
o/p
Avinash
ramangalam
o Avinash
Hell
Keeramangal
gal

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
avinash_mathi_483b018e36b
Avinash Mathi

Posted on September 14, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About