HackerRank/해커랭크-What's Your Name?-python

cosmos·2021년 8월 10일
0
post-thumbnail

문제

풀이

  • 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.

코드

# HackerRank, What's Your Name?, python3
#
# Complete the 'print_full_name' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
#  1. STRING first
#  2. STRING last
#

def print_full_name(first, last):
    # Write your code here
    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

0개의 댓글