• dictionaries

     /**


    Welcome to GDB Online.

    GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,

    C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.

    Code, Compile, Run and Debug online from anywhere in world.


    */


    print("how are you boss!!!")

    print("feeling tired...? ")


    print("please drink a little bit of water....pls sir...")




    var mydictionary = [String:String]()

    ///  [String:String]() ____it's empty variable define the type of data as much you can :)///


    mydictionary["SJD 312 "] = "BLACK BMW" 


    mydictionary["MMW 332 "] = "RED FARRARY" 





    let car = mydictionary["SJD 312"]

    for (key, value) in mydictionary {

        

        print("Car Number:\( key )and it's colour is \( value ) please catch him!")  

        

        

    }


  • 0 comments:

    Post a Comment

    GET MORE PRODUCTS

    We are providing best products.