Discover how to perform repetitive program actions that execute a specific number of times.
- [Instructor] Another very common task … in programming involves iterating over multiple items … of data in order to process each one. … To accomplish this, we use … a programming construct called a loop, … and in Julia, there are a few different ways … to construct loops, and we'll take … a look at those in this video. … So I'm going to go ahead and open up loops_start in my editor. … So let's begin with a basic for loop. … So to create a for loop, … I use the for keyword, and then … I'm going to define a local loop variable. … In this case, I'll call it i, … and then use the in keyword, and then specify a range. … So for a loop that goes from one to 10, … and therefore iterates 10 times, … I'm going to give it a one, … a colon, and a 10 for the range, … and then inside the loop, … I'll just simply print out whatever … the current value of i is. … And then I'll use the n keyword to close off my loop. … So that's a basic for loop on a range, … but you don't need to specify a numerical range. …
- 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.