Created
May 15, 2016 17:12
-
-
Save cameronmaske/da7d41dce632f8cb9a27114241c7cea0 to your computer and use it in GitHub Desktop.
Python vs Objective C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray *shoeOrder = @[@"Charles Smith", @(9.5), @"loafer", @"brown"]; | |
NSMutableDictionary *shoeOrderDict = [[NSMutableDictionary alloc] init]; | |
[shoeOrderDict setObject:[shoeOrder objectAtIndex:0] forKey:@"customer"]; | |
[shoeOrderDict setObject:[shoeOrder objectAtIndex:1] forKey:@"size"]; | |
[shoeOrderDict setObject:[shoeOrder objectAtIndex:2] forKey:@"style"]; | |
[shoeOrderDict setObject:[shoeOrder objectAtIndex:3] forKey:@"color"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shoe_order = ["Charles Smith", 9.5, "loafer", "brown"] | |
shoe_order_dict = { | |
'customer': shoe_order[0], | |
'size': shoe_order[1], | |
'style': shoe_order[2], | |
'color': shoe_order[3], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment