Generate Harvest Schedule Code
Generate Harvest Schedule Code
EasyStrings100% accepted
On a coconut farm in Kerala managed by Arjun, harvest schedules are encoded by season and bunch number. For season S and bunch number N, the code is 'S_BUNCH_XX' where XX is N padded with leading zero.
Approach
Given season code S and number N, return harvest code in format S_BUNCH_XX where XX is N padded to 2 digits.
Input
S="S1", N=3
Output
"S1_BUNCH_03"
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards