LearnPy Hub
← Decorators problems
Medium

Clean the Arguments First

Write a decorator clean_args that strips spaces and capitalises every string argument before calling the function. Decorate greet(first, last) returning Hello, FIRST LAST!. Read two lines and print the result.

Input

Two lines.

Output

One line.

Sample 1

Input
  mim
RAHMAN  
Output
Hello, Mim Rahman!

Sample 2

Input
rafi
ahmed
Output
Hello, Rafi Ahmed!
solution.py
Output appears here
Clean the Arguments First · Python practice problem · LearnPy Hub