hangman.py
Guess a Letter:hint ------ | | | 0 | /|\ | / t y p h u _ e _ Wrong Guesses:lmaio Guess a Letter:s ------ | | | 0 | /|\ | / t y p h u s e s Wrong Guesses:lmaio stay of execution
Guess a Letter:hint ------ | | | 0 | /|\ | / t y p h u _ e _ Wrong Guesses:lmaio Guess a Letter:s ------ | | | 0 | /|\ | / t y p h u s e s Wrong Guesses:lmaio stay of execution
select initcap(replace(lower('SOME_COLUMN_NAME'),'_',' ')) from dual;
Sub Capitalization_Split() 'Declaring variables Dim Cell As Range Dim Source As Range Dim Capitalized As String Dim Humps As Variant Dim Hump As String Dim i As Long 'Initializing source range Set Source = Application.Selection 'Looping through each cell in the source range For Each Cell In Source Capitalized = "" Hump = Cell.Value Humps = Split(Hump, "_") For i = LBound(Humps, 1) To UBound(Humps, 1) Hump = UCase(Left(Humps(i), 1)) & LCase(Right(Humps(i), Len(Humps(i)) - 1)) Capitalized = Capitalized & Hump & " " Next Cell.Value = Capitalized Next End Sub