Tuple in Python

 li=(12.3,12,12,False,"Gunjan",'g')

print(li[-3:-1])

print(len(li))

print(type(li))

x=("Blue Whale","Tiger")

li+=x

print(li)

if 'g' in li:

    print("Hi")


red,blue,*gre=li

print(red)

print(blue)

print(gre)

Comments

Popular posts from this blog

Requests and Urllib

Strings in C Language

Dictionary in Python