What's Your Name?

Sort by

recency

|

1388 Discussions

|

  • + 0 comments
    def print_full_name(first, last):
        # Write your code here
        print(f"Hello {first} {last}! You just delved into python.")
    
    if __name__ == '__main__':
        first_name = input()
        last_name = input()
        print_full_name(first_name, last_name)
    
  • + 0 comments

    def print_full_name(first, last): k="Hello firstname lastname! You just delved into python." k=k.split(" ") for i in range(len(k)): if k[i]=="firstname": k[i]=first elif k[i]=="lastname!": k[i]=last+ "!" j=" ".join(k) print(j)

    if name == 'main':

  • [deleted]
    + 0 comments

    For Python3

    def print_full_name(first, last):
        print(f"Hello {first} {last}! You just delved into python.")
    
    if __name__ == '__main__':
        first_name = input()
        last_name = input()
        print_full_name(first_name, last_name)
    
  • + 0 comments

    if len(first) and len (last)<=10: print(f'Hello {first} {last}! You just delved into python.')

  • + 0 comments

    #

    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): greeting = f"Hello {first} {last}! You just delved into python." print(greeting)

    if name == 'main': first_name = input() last_name = input() print_full_name(first_name, last_name)