Learn how to use Julia dictionaries, which map unique keys to individual values for quick access.
- [Instructor] Let's wrap up this chapter … by learning about Julia dictionaries. … A dictionary is a data structure that maps a unique key … to a given value … and they are useful for scenarios … where you need to look things up quickly. … Let's go ahead and open up our dicts_start file. … So to create a new dictionary, … you can use the dict constructor … and it looks like this. … So I'll have d1 is equal to dict … and then I'm going to map some keys to values. … So a is going to map using the equal arrow symbol to one, … and then b is going to map to two, … and then c will map to three. … And then I'll just go ahead and print out the dictionary. … So when you create a dictionary this way, … Julia will infer the types of keys and values. … However, you can also explicitly declare … these types as well. … So to create a dictionary that maps string keys … to string values, … I can write code that looks like this. … So I can declare the dictionary, … and then in curly braces, … I can have string for keys and strings for values, …
- Using the Julia REPL tool
- Differences between Julia and other languages
- Variables and data types
- Numbers in Julia
- Defining and operating on strings
- Using built-in functions in Julia
- Conditional statements
- Using array functions
- String processing
Skill Level Beginner
Python Basics for Java Developerswith Deepa Muralidhar42m 53s Beginner
Programming Foundations: Algorithmswith Joe Marini1h 45m Beginner
What you should know1m 26s
2. Language Basics
3. Language Features
4. Control Structures
5. Data Structures
6. Julia Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.