Skip to main content
Notice removed Reward existing answer by lyxal
Bounty Ended with Seggan's answer chosen by lyxal
Notice added Reward existing answer by lyxal
Bounty Started worth 100 reputation by lyxal
Tweeted twitter.com/StackCodeGolf/status/1244232999429984256
Another test case
Source Link
xnor
  • 146.6k
  • 26
  • 279
  • 652

Challenge

You will be given a string that can contain lowercase letters, uppercase letters, or spaces. You have to turn the vowels (a, e, i, o, u) in the string to upper case and consonants will be into lower case. This applies whether or not the letter was originally upper case or lower case. Spaces remain as is. Note that "y" is a consonant.

ExampleExamples

Input

Hello World

Output

 -> hEllO wOrld
abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVXWYZ -> AbcdEfghIjklmnOpqrstUvwxyz AbcdEfghIjklmnOpqrstUvxwyz

Info

  • String contains onlyThe input string can contain letters A to Z letters, lowercase or uppercase, and spacespaces.

Input

The string

Output

The formatted string (Vowels uppercase and consonants lowercase).

Challenge

You will be given a string. You have to turn the vowels (a, e, i, o, u) in the string to upper case and consonants will be in lower case.

Example

Input

Hello World

Output

hEllO wOrld

Info

  • String contains only A to Z letters and space.

Input

The string

Output

The formatted string (Vowels uppercase and consonants lowercase).

Challenge

You will be given a string that can contain lowercase letters, uppercase letters, or spaces. You have to turn the vowels (a, e, i, o, u) in the string to upper case and consonants to lower case. This applies whether or not the letter was originally upper case or lower case. Spaces remain as is. Note that "y" is a consonant.

Examples

Hello World -> hEllO wOrld
abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVXWYZ -> AbcdEfghIjklmnOpqrstUvwxyz AbcdEfghIjklmnOpqrstUvxwyz

Info

  • The input string can contain letters A to Z, lowercase or uppercase, and spaces.

Input

The string

Output

The formatted string (Vowels uppercase and consonants lowercase).

Clarify vowels based on OP's comment
Source Link
Xcali
  • 16.2k
  • 2
  • 15
  • 39

Challenge

You will be given a string. You have to turn the vowels (a, e, i, o, u) in the string to upper case and consonants will be in lower case.

Example

Input

Hello World

Output

hEllO wOrld

Info

  • String contains only A to Z letters and space.

Input

The string

Output

The formatted string (Vowels uppercase and consonants lowercase).

Challenge

You will be given a string. You have to turn the vowels in the string to upper case and consonants will be in lower case.

Example

Input

Hello World

Output

hEllO wOrld

Info

  • String contains only A to Z letters and space.

Input

The string

Output

The formatted string (Vowels uppercase and consonants lowercase).

Challenge

You will be given a string. You have to turn the vowels (a, e, i, o, u) in the string to upper case and consonants will be in lower case.

Example

Input

Hello World

Output

hEllO wOrld

Info

  • String contains only A to Z letters and space.

Input

The string

Output

The formatted string (Vowels uppercase and consonants lowercase).

Became Hot Network Question
Post Reopened by Arnauld code-golf
Post Closed as "Duplicate" by Wheat Wizard code-golf
edited title
Link
Wasif
  • 12.4k
  • 1
  • 18
  • 47

Vowels up, constantsconsonants down

Source Link
Wasif
  • 12.4k
  • 1
  • 18
  • 47
Loading