Extract Jio Fiber Plan Name from Code
Extract Jio Fiber Plan Name from Code
EasyStrings0% accepted
Priya works at Jio's customer service in Mumbai. Service codes like 'JF-GOLD-30' encode plan information: 'JF' prefix, plan type (SILVER/GOLD/PLATINUM), speed in Mbps. Extract the plan type from service codes.
Approach
Given a Jio service code formatted as 'JF-PLANTYPE-SPEED' with hyphens as separators, extract and return the PLANTYPE portion.
Input
JF-GOLD-30
Output
GOLD
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