?UPC

ABC 388

Problem 28 of 50

Easy

What to do

Take the first character of the input string and append 'UPC' to it. Return the result. For example, 'Kyoto' → 'KUPC'.

Key Concepts

string manipulation concatenation input/output

Examples

Input: s = 'Kyoto'

Output: KUPC

Input: s = 'Tohoku'

Output: TUPC

Tips for Beginners

  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first

Python Editor

Loading Python...