Wednesday, January 20, 2021

python day 20 revision on all topics

 # -*- coding: utf-8 -*-

"""


 python day 20

@author: anil


for i in range(1,100,1):

     print(i)

     


fruits=["dragon","mango","apple"]

print(type(fruits))

print(fruits[0])

print(fruits[1])

print(fruits[2])




pra1={'key1':10,

      'key2':{'key3':23},

      

      }

print(type(pra1))

print(pra1['key2']['key3'])



def basha(a,b):

    #print("rajini is the boss",a+b)

    return a+b



if __name__ == "__main__":

    s=basha(3,4)

    print(s)


    s=basha(300,400)

    print(s)

    

"""

def basha(a,b,*s,**kw):

    return s


s=basha(4,5,7)

print(s)

    





     



No comments:

Post a Comment

python class topic video