Skip to main content

Posts

Featured

Function and Recursion in Python | Shraddha Khapra #Lec 06

  # =============== Dictionary and set (built-in data  type) ===================== # Dictionaries are used to store to store in key:value paris # They are unorderd,mutable(changable) & don't allow duplicate keys dictionary = {     "name" : "asad shams ud din" ,     "age" : 20 ,     "class" : "bscs" ,     "language" : "english,urdu" ,     "skill" :[ "python" , "C++" , "Javascript" ],     #we can store list in dictionary     "expierence" : ( "sotware engineer" , "data  science" , "machine learning" ), #store tuple in dictionary     2004 : 2025   #we can store like this } print ( dictionary , type ( dictionary )) print ( dictionary [ "age" ]) print ( dictionary [ "name" ])   #access values in dictionary dictionary [ "age" ] = 21 print ( dictionary )     #change values in dictionary dictionary [ ...

Latest Posts

Loop in Python | Shraddha Khapra #Lec 05

Dictionary and Set in Python | Shraddha Khapra #Lec 04

List and Tuple in Python | Shrddha Khapra #Lec 03

Strings and Conditional Statements in Python | Shraddha Khapra # Lec 02