Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Exploring Iterations and Loops in Lua

via CodeSignal

Overview

Discover the power and flexibility of loops in Lua as you learn to automate repetitive tasks. This course covers for loops (numeric and generic) and while loops, and introduces advanced concepts like loop controls and nested loops. By the end of this course, you'll be able to use loops to enhance the efficiency and complexity of your code.

Syllabus

  • Unit 1: Numeric For Loops
    • Change the Loop Range
    • Find and Fix the Loop Bug
    • Change the Countdown Starting Point
    • Complete the City Tour Loop
    • Write Your Own Numeric For Loops
  • Unit 2: Iterating Over Tables
    • Numbered List Printing Challenge
    • Find and Fix the Loop Bug
    • Looping Through a Food List
    • Loop Through and Print Destinations
  • Unit 3: Controlling Loops with Break
    • Control When Your Loop Stops
    • Find and Fix the Loop Bug
    • Stop the Loop When Needed
    • Stop the Search When Needed
  • Unit 4: Understanding While Loops
    • Adjusting Loop Conditions for Packing
    • Complete the While Loop Logic
    • Stop the While Loop Early
    • Build Your Own Trip Planner
  • Unit 5: Nested Loops in Lua
    • Switching Loop Functions in Nested Loops
    • Fix the Nested Loop Bug
    • Complete the Nested Loop Structure
    • Build Nested Loops from Scratch
  • Unit 6: Simple Algorithms with Loops
    • Find and Fix the Loop Bug
    • Complete the Trip Cost Loop
    • Calculate Trip Totals with Loops

Reviews

5.0 rating, based on 1 Class Central review

Start your review of Exploring Iterations and Loops in Lua

  • This course will help users to learn for loops and while loops quite efficiently. I'd personally recommend you practice more before trying out the module. It is little bit spicy for beginners.

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.