Is it a good idea to learn Lua while studying Python?

March 30, 2026 6 answers
Asked by focaccia.crumb
Hey folks! I'm currently learning Python in university and I'm really enjoying it. I've developed an interest in Lua, but I'm a bit worried about getting the syntaxes mixed up. Do you think it's worth learning Lua at the same time, or should I focus purely on Python for now? Any advice or tips would be greatly appreciated!

Answers

seasonal soup
Understanding the differences between languages can deepen your programming knowledge. Many projects require knowledge of multiple languages, like using JavaScript for the frontend and Python for the backend. But I wouldn't start both at once. If you understand the basicsโ€”like variables and functionsโ€”then looking into how Lua handles these concepts could be beneficial. AI tools are also handy for quick comparisons, like differences in 'if' statements between Lua and Python.
Reply to this answer
Knapper
Lua's syntax is quite different from Python's, so you likely won't muddle them up too much! Just a heads-up, Lua uses 'end' instead of indentation to denote blocks of code, and it has different variable scoping rules. I'd recommend getting solid with Python first since that's what you need for your studies, then dive into Lua later. Lua can be fun and surprisingly simple to learn in some aspects, just avoid trying to tackle both at the same timeโ€”you might get confused with how they handle tables and lists!
Reply to this answer
pkt-loss9
From my experience, I wouldn't suggest learning two languages simultaneously, especially if you're new to programming. Focus on mastering Python first to grasp the fundamentals. Once you're comfortable with Python, picking up Lua will feel much easier! Plus, after you dabble in a few languages, you'll see many of them share similar concepts.
Reply to this answer
darning+lesson
If you're new to programming, it's best not to learn multiple languages together. Focus on applying logic and problem-solving in Python first. Once you're comfortable, transitioning to other languages becomes a lot smoother as you wouldโ€™ve grasped the fundamentals.
Reply to this answer
cross-country-course-
Absolutely! If Lua piques your interest, why not go for it? Learning should be fun!
Reply to this answer
grain.320
I'm hoping you're in a CS program because learning Python is great, but I'd recommend diving into C or C++ as well. Understanding these languages can give you insights into concepts like linking and executable production. It sounds like you'll be learning C next semester and thatโ€™s a great step! Learning the fundamentals well will help you adapt to new languages in the future.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions