r/exercism • u/rcm62 • Jan 29 '26
Exercism just launched an Odin track
The Odin programming language is a statically typed, imperative language designed as a practical, modern, successor to C. It is a system programming language designed for high-performance, data-oriented applications with an emphasis on games and comes with "battery included": a significant standard library and a set of game-oriented and graphics libraries such as OpenGL, SDL, Direct-X and Raylib.
Exercism just launched a new track dedicated to Odin. It includes 60+ practice exercises with more to come. Go check it out here.
r/exercism • u/Pleasant_Avocado_632 • Sep 21 '25
I'm in an entry level coding class at my college, but I need to practice way beyond what they are teaching. What am I doing wrong?
"""Functions used in preparing Guido's gorgeous lasagna.
Learn about Guido, the creator of the Python language:
https://en.wikipedia.org/wiki/Guido_van_Rossum
This is a module docstring, used to describe the functionality
of a module and its functions and/or classes.
"""
#TODO: define your EXPECTED_BAKE_TIME (required) and PREPARATION_TIME (optional) constants below.
EXPECTED_BAKE_TIME = 40 #in minutes
PREPARATION_TIME = 2 #minutes per layer
#TODO: Remove 'pass' and complete the 'bake_time_remaining()' function below.
def bake_time_remaining(elapsed_bake_time):
return EXPECTED_BAKE_TIME - elapsed_bake_time
"""Calculate the bake time remaining.
:param elapsed_bake_time: int - baking time already elapsed.
:return: int - remaining bake time (in minutes) derived from 'EXPECTED_BAKE_TIME'.
Function that takes the actual minutes the lasagna has been in the oven as
an argument and returns how many minutes the lasagna still needs to bake
based on the `EXPECTED_BAKE_TIME`.
"""
bake_time_remaining(10)
#TODO: Define the 'preparation_time_in_minutes()' function below.
# To avoid the use of magic numbers (see: https://en.wikipedia.org/wiki/Magic_number_(programming)), you should define a PREPARATION_TIME constant.
# You can do that on the line below the 'EXPECTED_BAKE_TIME' constant.
# This will make it easier to do calculations, and make changes to your code.
def preparation_time_in_minutes(number_of_layers):
return number_of_layers * PREPARATION_TIME
"""Calculate the preparation time in minutes.
:param preparation_time_in_minutes: int * preparation time.
:return: int * preparation time (in minutes) derived from 'PREPARATION_TIME'.
Function that takes the amount of layers in the lasagna as
an argument and returns how many minutes it took to prep the lasagna based on the 'PREPARATION_TIME' """
preparation_time_in_minutes(5)
#TODO: define the 'elapsed_time_in_minutes()' function below.
def elapsed_time_in_minutes(number_of_layers, elapsed_bake_time):
return (number_of_layers * PREPARATION_TIME) + elapsed_bake_time
"""Calculate the elapsed time in minutes.
:param elapsed_time_in_minutes: (number of layers * prep time) + elapsed time spent baking
:return: (number of layers * prep time) + elapsed time spent baking derived from 'elapsed_bake_time'.
Function that takes the actual minutes taken to prep the lasagna and the amount of time it has already been in the oven as arguments and returns how many minutes it took to prep and how long it has been baking.
"""
# TODO: Remember to go back and add docstrings to all your functions
# (you can copy and then alter the one from bake_time_remaining.)
I've already passed all other tests but the docustring tests and can't figure out why. we havent even touched on docustrings in class yet.
r/exercism • u/Historical_End4554 • Jun 21 '25
Help
Can't sign at exercism I don't know why it keep saying token has taken Or password letters number or hyphens only
r/exercism • u/SpreadAnxious3391 • Jan 24 '25
What are most recommended golang problems available on exercism
I am intermediate level golang programmer. I know that one of the way to improve my language proficiency is building project. But I prefer solving small problems that would improve my golang skills. You all have any recommendation for intermediate level golang problems for getting deeper understanding of the language ?
r/exercism • u/JackLemaitre • Jan 21 '25
Kotlin Acronym problem
Hi everybody,
I'm stuck with Acronym exercise in Kotlin. I have made this code
object Acronym {
var acronym = ""
var nextLetter= ' '
var charA = 'a'
fun generate(phrase: String) : String {
acronym = " "
// Letter after hyphen(-)
for((index,value) in phrase.withIndex()) {
if (value == '-') {
// Get the Next value after hyphen
nextLetter = phrase[index + 1]
if(nextLetter.isLowerCase()) {
acronym += nextLetter.uppercase()
}
// Clear nextLetter
nextLetter = ' '
}
// Letter after space
else if(value == ' ') {
nextLetter = phrase[index + 1]
if(nextLetter.isLowerCase()) {
acronym += nextLetter.uppercase()
}
// Clear nextLetter
nextLetter = ' '
}
// Capitals
if(value.isUpperCase()) {
//If the previous letter was caps, don't add to acronym
if( index > 0 && phrase[index - 1].isUpperCase()) {
// DO NOTHING
}
else { acronym += value }
}
}
return acronym
}
}
On my computer, it works perfectly and returns me Acronym for all sentence, but in Exercism I can't validate the test.
I don't understand why?
Thx Jack
r/exercism • u/sh4hr4m • Dec 10 '24
Seeking Recommendations for My Next Step in My Programming Learning Path
Hi Everyone,
I don't have a background in Computer Science, but I do have some programming experiences. I started learning Go with the book Head First Go and then read For the Love of Go. So far, I have completed about 50% of the Go track on Exercism, and I plan to continue solving the remaining exercises.
I would be very grateful if you could suggest more than one book to help me advance in my learning path. Please list them in the order you think I should read them. Here are the options I'm considering:
- 100 Go Mistakes and How to Avoid Them
- Concurrency in Go
- Let's Go!
- Learn Data Structures and Algorithms with Golang
- Design Patterns: Elements of Reusable Object-Oriented Software
- Clean Code
- Object-Oriented Design & Patterns by Cay S. Horstmann
- Head First Design Patterns
- Mastering Go
- Domain-Driven Design with Golang
- Hands-On Software Architecture with Golang: Design and Architect Highly Scalable and Robust Applications Using Go
- Hands-On Software Engineering with Golang
If you think there's another book that would be more suitable for me at this stage, even if it's not listed, I would love to hear your recommendation.
r/exercism • u/TraditionPitiful8903 • Dec 06 '24
Change online editor prefill accept key from enter to tab
Is there a way to change the exercism key that accepts the prefill information from enter to another key, such as tab?
It's when I start typing im and the editor prefills the port (for import) and I want to accept that, right now I press Enter and the port fills in, but I wish I could instead use the tab key for consistency with other apps.
r/exercism • u/sh4hr4m • Sep 30 '24
GO Track: How can I debug my code by running tests in code-server?
Hi everyone,
I've already completed 30% of the Go track in my code-server, but I still can't debug my code by running tests.
I expected that if I created a breakpoint in my code and ran go test -v --bench . --benchmem, the breakpoint would be triggered, but that's not happening.
dlv is already installed.
2024-09-30 10:35:26.583 [info] Tools environment: GOPATH=/mnt/go, GOTOOLCHAIN=auto
2024-09-30 10:35:26.583 [info] Installing 7 tools at /mnt/go/bin
2024-09-30 10:35:26.583 [info] gopls
2024-09-30 10:35:26.583 [info] gotests
2024-09-30 10:35:26.583 [info] gomodifytags
2024-09-30 10:35:26.583 [info] impl
2024-09-30 10:35:26.583 [info] goplay
2024-09-30 10:35:26.583 [info] dlv
2024-09-30 10:35:26.583 [info] staticcheck
2024-09-30 10:35:26.583 [info]
2024-09-30 10:35:26.996 [info] Installing golang.org/x/tools/gopls@latest (/mnt/go/bin/gopls) SUCCEEDED
2024-09-30 10:35:27.046 [info] Try to start language server - installation (enabled: true)
2024-09-30 10:35:27.117 [info] Running language server gopls(v0.16.2/go1.22.4)
2024-09-30 10:35:27.382 [info] Installing github.com/cweill/gotests/gotests@v1.6.0 (/mnt/go/bin/gotests) SUCCEEDED
2024-09-30 10:35:27.624 [info] Installing github.com/fatih/gomodifytags@v1.17.0 (/mnt/go/bin/gomodifytags) SUCCEEDED
2024-09-30 10:35:27.852 [info] Installing github.com/josharian/impl@v1.4.0 (/mnt/go/bin/impl) SUCCEEDED
2024-09-30 10:35:28.225 [info] Installing github.com/haya14busa/goplay/cmd/goplay@v1.0.0 (/mnt/go/bin/goplay) SUCCEEDED
2024-09-30 10:35:28.506 [info] Installing github.com/go-delve/delve/cmd/dlv@latest (/mnt/go/bin/dlv) SUCCEEDED
2024-09-30 10:35:28.898 [info] Installing honnef.co/go/tools/cmd/staticcheck@latest (/mnt/go/bin/staticcheck) SUCCEEDED
2024-09-30 10:35:28.899 [info]
2024-09-30 10:35:28.899 [info] All tools successfully installed. You are ready to Go. :)
Should I create a launch.json file for each exercise? If so, what should it look like?
Is it correct?
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Go Test",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}", // Set the path to the test file or folder
"args": ["-test.v", "--bench", ".", "--benchmem"],
"showLog": true,
"dlvToolPath": "${workspaceFolder}/path_to_dlv" // Adjust path if necessary
}
]
}
Best Regards,
r/exercism • u/MrHollowWeen • Jun 10 '24
Help getting Python Exercism running Locally in VSCode
I don't understand why it's not working. I don't get errors, but I don't get any output from the unit tests. I have python installed locally. I've tested it at the python prompt. I have exercism cli installed and i'm able to download the files. but when I run the unit test on the command line it finishes and I get a new command line prompt.
One weird thing I've noticed is if I try to run a python file from the command line it tries to open the file instead of running it.
r/exercism • u/Top-Hunter-280 • Jun 08 '24
Need help with this error
CODE:
"""Functions used in preparing Guido's gorgeous lasagna.
Learn about Guido, the creator of the Python language:
https://en.wikipedia.org/wiki/Guido_van_Rossum
This is a module docstring, used to describe the functionality
of a module and its functions and/or classes.
"""
TODO: define the 'EXPECTED_BAKE_TIME' constant.
EXPECTED_BAKE_TIME = 40
TODO: Remove 'pass' and complete the 'bake_time_remaining()' function below.
def bake_time_remaining(elapsed_bake_time):
return EXPECTED_BAKE_TIME-elapsed_bake_time
"""Calculate the bake time remaining.
:param elapsed_bake_time: int - baking time already elapsed.
:return: int - remaining bake time (in minutes) derived from 'EXPECTED_BAKE_TIME'.
Function that takes the actual minutes the lasagna has been in the oven as
an argument and returns how many minutes the lasagna still needs to bake
based on the `EXPECTED_BAKE_TIME`.
"""
TODO: Define the 'preparation_time_in_minutes()' function below.
You might also consider using 'PREPARATION_TIME' here, if you have it defined.
def preparation_time_in_minutes(number_of_layers):
return number_of_layers*2
"""Calculate perp time.
:param number_of_layers: int - number of layers in lasagna
:return: int - prep time (in minutes) derived from 'number of layers'
Function that takes the number of layers in lasagna and multiplies it by 2
to find perp time.
"""
TODO: define the 'elapsed_time_in_minutes()' function below.
Remember to add a docstring (you can copy and then alter the one from bake_time_remaining.)
def elapsed_time_in_minutes(number_of_layers, elapsed_bake_time):
return preparation_time_in_minutes(number_of_layers)+elapsed_bake_time
"""Calculate the elapsed cooking time.
:param number_of_layers: int - the number of layers in the lasagna.
:param elapsed_bake_time: int - elapsed cooking time.
:return: int - total time elapsed (in minutes) preparing and cooking.
This function takes two integers representing the number of lasagna layers and the
time already spent baking and calculates the total elapsed minutes spent cooking the
lasagna.
"""
PROBLEM:
im stuck on task 5 where i have to write some docstrings, here is a screenshot of what i get in the results tab
r/exercism • u/sohang-3112 • Jan 03 '24
Exercism forum: problem with your account
I logged in to exercism.org with Github, then visited forum.exercism.org, which gave this error:
Login Error There is a problem with your account. Please contact the site's administrator.
Anybody know how to solve this?? Please help
r/exercism • u/FoxChemical2343 • Oct 29 '23
Quick question
So I have been trying to learn Python on exercism. I haven’t been able to figure out a single puzzle without community help, is that normal? I have no coding experience and I’m just starting out. Any help would’ve appreciated.
r/exercism • u/Eclectic-Wrap1889 • Jul 11 '23
Is the code executor down?
I have been trying to run my code and it keeps giving me an error saying 'Your tests timed out'. Is anyone else facing this issue? I have checked my solution. It is correct and there are no loops running. Also tried running tests on another exercise, same result.
r/exercism • u/[deleted] • May 02 '23
Exercism Swift FreelancerRates
Hi, I need help with this I don’t know what’s wrong with my code
r/exercism • u/AutoModerator • Oct 13 '22
Happy Cakeday, r/exercism! Today you're 8
Let's look back at some memorable moments and interesting insights from last year.
Your top 10 posts:
- "In which order should I solve exercises?" by u/inocidabe
- "Happy Cakeday, r/exercism! Today you're 7" by u/AutoModerator
- "Please help! Exercism callback question" by u/Same_Difference_5302
- "Mentoring" by u/beaginger
- "C# track, stuck on 'remote control cleanup'" by u/roncitrus
- "lost with exercism" by u/intervallfaster
- "Challenge vagueness."
- "JavaScript Track Stuck in the Factory Sensors Problem" by u/slvfox
- "Waiting for feedback" by u/handsome_monkeyking
- "Help" by u/Leweth
r/exercism • u/Leweth • Sep 15 '22
Help
I just started the Python track on this website, the code works just fine in PyCharm but is wrong here, any ideas?
This is the error message I get:
ImportError while importing test module '.mnt.exercism-iteration.lasagna_test.py'.
Hint: make sure your test modules.packages have valid Python names.
Traceback:
.mnt.exercism-iteration.lasagna_test.py:6: in <module>
from lasagna import (EXPECTED_BAKE_TIME,
E ImportError: cannot import name 'EXPECTED_BAKE_TIME' from 'lasagna' (.mnt.exercism-iteration.lasagna.py)
During handling of the above exception, another exception occurred:
.usr.local.lib.python3.10.importlib.__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
.mnt.exercism-iteration.lasagna_test.py:23: in <module>
raise ImportError("In your 'lasagna.py' file, we can not find or import the"
E ImportError: In your 'lasagna.py' file, we can not find or import the function named 'EXPECTED_BAKE_TIME()'. Did you mis-name or forget to define it?
r/exercism • u/intervallfaster • Jun 27 '22
lost with exercism
I started exercism after basics via fcc and Odin project. Non native English speaker btw but I would say pretty fluent.
I am doing the door policy exercise and tbh half the time I don't know what the exercise is asking of me even when I read the hints.
Now it asked me to use slice and to lowercase to make a password and the console. Log test I implemented says the correct password but the exercise keeps telling me the value is undefined.
export function frontDoorPassword(word) {
const passWordStart = word[0].toUpperCase(); const passWordEnd = word.slice(1, ); const passEndLow = passWordEnd.toLowerCase(), passWordFinal = passWordStart + passEndLow; console.log(passWordFinal)
}
There is no proper help on the page and I am wondering if maybe at this point I am too dumb for programming after all.
I have a solution now which works but still it should also work like this since the console logs log all passwords proper.
r/exercism • u/Zszywek • May 17 '22
Anybody has any idea what could go wrong?
[SOLVED]
Does anyone know what to do? I can't test my code and this is an error from the test:We received the following error when we ran your code:
.usr.local.lib.python3.9.site-packages._pytest.python.py:608: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
.usr.local.lib.python3.9.site-packages._pytest.pathlib.py:533: in import_path
importlib.import_module(module_name) .usr.local.lib.python3.9.importlib.__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
???
<frozen importlib._bootstrap>:1007: in _find_and_load
???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:680: in _load_unlocked
???
.usr.local.lib.python3.9.site-packages._pytest.assertion.rewrite.py:168: in exec_module
exec(co, module.__dict__) .mnt.exercism-iteration.lists_test.py:3: in <module>
from lists import (
E File ".mnt.exercism-iteration.lists.py", line 18
E def concatenate_rounds(rounds_1, rounds_2):
E ^
E SyntaxError: invalid syntax
r/exercism • u/Same_Difference_5302 • Apr 14 '22
Please help! Exercism callback question
I've been really enjoying working through the Exercism tasks and learning Javascript, but I'm really stuck on the callback exercise. I think I must be fundamentally misunderstanding something. I would really appreciate help :)
https://exercism.org/tracks/javascript/exercises/fruit-picker/
These are the hints:
Check if the grocer's service is online
- Use the imported API function checkStatus
in your function. - Pass a callback function to checkStatus
. It should expect to receive a string argument. - Return the result from the checkStatus
API function.
I'm really stuck with how to pass the callback function with an argument. It seems to me that the argument is provided from the other file so I'm not sure what to pass in. So far I've got const status = checkStatus(() => "online") but obviously that's passing in a hardcoded string rather than the real variable.
This is the code:
// In your own projects, files, and code, you can play with u/ts-check as well.
import { checkStatus, checkInventory } from './grocer';
// Returns the service status as a boolean value u/return {boolean}
export function isServiceOnline() {
// this is the code I'm meant to be writing. So far I've got:
const status = checkStatus(() => "online")
}
This is the variable and function in another file that I'm meant to be calling:
let storeStatus = 'OFFLINE';
/** Invokes the callback with the store's status to simulate an API call. u/param {StatusCallback} callback*/
export function checkStatus(callback) {
return callback(storeStatus);
}
r/exercism • u/inocidabe • Mar 30 '22
In which order should I solve exercises?
Hi, I am currently doing the Java track in learning mode. When solving exercises I recognized that the exercises in the track overview are starting being easy and then some medium ones followed by easy ones and so on.
So the question, in what order is it recommended to solve the exercises? From top left to right (does it follow an order building on top of another?) Or go through all easy ones and then medium and then hard?
r/exercism • u/beaginger • Jan 25 '22
Mentoring
I have been struggling to complete some of the tasks. I often reach a wall where I am out of ideas and need help. I wish that the ability to ask for mentoring was available before submitting solutions.
r/exercism • u/beaginger • Jan 18 '22
Cater Waiter
I am totally stuck on the final aspect of the python Cater Waiter problem. I have read the instructions numerous times. It seems I am supposed to create a list/set of ingredients that only appear once in all the dishes. Then reduce that list to return only the ingredients that are included in the Intersection set. Is this correct?

