Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 516 Bytes

File metadata and controls

28 lines (15 loc) · 516 Bytes

027 sequence of lines

📝 Instructions:

  1. Write a function lines() that accepts a string as parameter and returns the string after making all the characters in the sentence capitalized.

Example input 1:

lines("Hello world")

Example output 1:

  • "HELLO WORLD"

Example input 2:

lines("Practice makes perfect")

Example output 2:

  • "PRACTICE MAKES PERFECT"

💡 Hint:

  • In case of input data being supplied to the question, it should be assumed to be a console input.