Format Vessel Identity Code
Format Vessel Identity Code
EasyStrings100% accepted
In the Arabian Sea, fishing vessels operate with identification codes. Ravi combines port code, vessel number, and timestamp into a standardized format for tracking in the fleet database.
Approach
Given port code P, vessel number V, and timestamp T, return the formatted string in format P-V-T.
Input
P=MUM, V=123, T=1000
Output
MUM-123-1000
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