Free
CourseLearn Lua
Learn the basics of Lua, a general-purpose programming language used for building games, web apps, and developer tools.
This course includes
This course includes
Skill level
BeginnerTime to complete
Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary4 hoursProjects
4Prerequisites
None
About this course
Lua is a versatile programming language used for games, web apps, and developer tools. This beginner course teaches the fundamentals of programming with Lua, offering interactive practice in building terminal-based programs. You’ll learn how to code efficiently in Lua while gaining foundational programming skills.
Skills you'll gain
Writing and editing code in Lua
Adding comments to improve code clarity
Using Lua data types and variables
Implementing conditional statements for decision-making
Organizing code using functions
Syllabus
5 lessons • 4 projects • 5 quizzesCertificate of completion available with Plus or Pro
Earn a certificate of completion and showcase your accomplishment on your resume or LinkedIn.
Projects in this course
- practice Project
Mystic Moon Potion Shop
Create a receipt generator for a fictional potion shop using data types, operators, and variables. - practice Project
Magic Eight Ball
We've learned how to harness the power of control structures, so let's put that knowledge to use and tell someone's fortune. - practice Project
Fahrenheit Converter
In this project you'll be writing a program to convert from Fahrenheit to Celsius and Kelvin. Specifically, focusing on writing functions that can be re-used to handle these conversions.
Meet the creator of the course

Kenny Lin
Software Engineer at CodecademyEarn a certificate of completion
Show your network you've done the work by earning a certificate of completion for each course or path you finish.- Show proofReceive a certificate that demonstrates you've completed a course or path.
- Build a collectionThe more courses and paths you complete, the more certificates you collect.
- Share with your networkEasily add certificates of completion to your LinkedIn profile to share your accomplishments.
Learn Lua course ratings and reviews
3,249 ratings
- 5 stars
- 4 stars
- 3 stars
- 2 stars
- 1 star
- I thought this course was amazing! I definitely had an amazing time learning how to code in Lua with this course. The steps were easy to follow and specific enough to execute. I had a blast learning.Keon C.Verified Learner
- This course was very different from all the other courses I have done. It is the perfect course to learn coding on. I thoroughly enjoyed this course and look forward to future experiences with Codecademy.Grant B.Verified Learner
- This course is an amazing start to new coders, and makes real-world activities much more easier.Luke G.Verified Learner
Our learners work at
Join over 50 million learners and start Learn Lua today!
Looking for something else?
Related resources
- Article
Why Data Structures?
Learn what data structures are, why they are useful, and how you can use them effectively. - Article
R Programming Language Explained (Careers, Use Cases, Difficulty)
Explore what the R programming language is, its features, pros and cons, use cases, careers, and how it compares to Python. Learn how R is used in data science and how easy it is to learn. - Article
Overview of Conditionals, Functions, and Scope
Get started on conditionals, functions, and scope, which are all universal programming concepts.
Related courses and paths
- Free course
Learn C#
Learn Microsoft's popular C# programming language, used to make websites, mobile apps, video games, VR, and more.Beginner Friendly17 hours - Free course
Learn to Code with Blockly
Want to learn how to get started with programming in an interactive way? Try our drag and drop code lessons!Beginner Friendly2 hours - Free course
Learn C: Variables and Operators
Learn how to store and manipulate your data with C variables and operators.Beginner Friendly2 hours
Browse more topics
- Web development5,334,280 learners enrolled
- Code foundations7,956,807 learners enrolled
- Computer science6,424,927 learners enrolled
- Data science4,878,740 learners enrolled
- Python3,936,340 learners enrolled
- For business3,732,044 learners enrolled
- JavaScript3,032,107 learners enrolled
- Data analytics2,820,144 learners enrolled
- IT2,778,903 learners enrolled
Unlock additional features with a paid plan
Practice Projects
Guided projects that help you solidify the skills and concepts you're learning.Assessments
Auto-graded quizzes and immediate feedback help you reinforce your skills as you learn.Certificate of Completion
Earn a document to prove you've completed a course or path that you can share with your network.