See how to define tuples, which are immutable sequences of individual data values.
- [Instructor] Another similarity that Julia shares … with a language like Python is support … for a collection type called a tuple, … which we will examine in this lesson. … So I'll open up the tuples_start file here in my editor … and a tuple is an ordered sequence of elements … just like an array, which we saw previously, … but the key difference is that tuples are immutable. … In other words, they can't be changed once they're created. … Tuples are most useful for relatively small collections … of values and Julia uses them in a variety of places. … So, for example, the list arguments to a function … is a tuple and you can use tuples … to return multiple values from a function. … To create a tuple, you enclose a set … of values in parentheses. … I can make a variable named tup … and I can group some things together … and notice I'm using parentheses … instead of the square brackets. … And I can put in multiple different kinds of data, … so I've got some integers and strings and floating points …
- 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.