Skip to content
Onsite

Map Symbols

EasyP3Coding

Map the eight symbols !, @, #, $, %, ^, &, *, in that order, to the values start, start + 2, start + 4, ... Return the pairs as strings of the form "<symbol>-<value>", in the same order.

Example 1

Input
start = 1
Output
["!-1","@-3","#-5","$-7","%-9","^-11","&-13","*-15"]

Example 2

Input
start = 0
Output
["!-0","@-2","#-4","$-6","%-8","^-10","&-12","*-14"]

Example 3

Input
start = -4
Output
["!--4","@--2","#-0","$-2","%-4","^-6","&-8","*-10"]

Constraints

  • -1000 <= start <= 1000

Hints

Run checks the 3 visible tests, Submit all 10.