We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- What's Your Name?
- Discussions
What's Your Name?
What's Your Name?
Sort by
recency
|
1320 Discussions
|
Please Login in order to post a comment
#
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): # method 1 print("Hello",first,last,end="! You just delved into python.")
if name == 'main': first_name = input() last_name = input() print_full_name(first_name, last_name)
print("Hello {0} {1}! You just delved into python.".format(first,last))
def print_full_name(first, last): # Write your code here print(f"Hello {first} {last}! You just delved into python.")
def print_full_name(first, last): print("Hello", first, last, end="! You just delved into python.")
def print_full_name(first, last): print("Hello", first, last, end="! You just delved into python.")