HackerRank/해커랭크-What's Your Name?-python
3430 단어 hackerrankhackerrank
문제
풀이
- 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)
결과
출처 && 깃허브
Author And Source
이 문제에 관하여(HackerRank/해커랭크-What's Your Name?-python), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@cosmos/HackerRank해커랭크-Whats-Your-Name-python저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)