CBC

ABC 402

Problem 14 of 50

Easy

What to do

You need to take a string that contains both uppercase and lowercase letters and create a new string with only the uppercase letters in the same order. For example, from 'HelloWorld', you would get 'HW'.

Key Concepts

strings loops conditionals (if-statements) output

Examples

Input: 'AtCoderBeginnerContest'

Output: ACBC

Input: 'PaymentRequired'

Output: PR

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...