문제
풀이
- Hello firstname lastname! You just delved into python.
- Complete the print_full_name function in the editor below.
- print_full_name has the following parameters:
- string first: the first name
- string last: the last name
- Input Format :The first line contains the first name, and the second line contains the last name.
- Constraints :The length of the first and last names are each ≤ 10.
코드
def print_full_name(first, last):
print(f'Hello {first} {last}! You just delved into python.')
if __name__ == '__main__':
firstname = str(input())
lastname = str(input())
print_full_name(firstname, lastname)
결과
출처 && 깃허브
HackerRank
github