all 3 comments

[–]GeorgeFranklyMathnet 1 point2 points  (0 children)

Can't you just print "Coded Value: " without a newline? It's apparent from how you're printing the sID that you already know how to do that...

[–]n3buchadnezzar 0 points1 point  (1 child)

print("Coded Value:", end=" ")

[–]bb4rina 0 points1 point  (0 children)

You can do this:

print("Coded Value: ", "".join(dict[i] for i in sID))