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
|
1394 Discussions
|
Please Login in order to post a comment
def print_full_name(first, last): print('Hello {} {}! You just delved into python.'.format(first,last))
if name == 'main': first_name = input() last_name = input() print_full_name(first_name, last_name)
Beware the final full stop! One sentence gives you the expected output without a full stop (in among the sentence about it, in quote marks), others show it with a full stop and it expects a full stop there.
def print_full_name(first, last): hello= "Hello %s %s! You just delved into python." % (first,last) print (hello)
if name == 'main': first_name = input() last_name = input() print_full_name(first_name, last_name)