11. Consider the following code :

  name = input("What is your name?")
  print ('Hi', name,',')
  print ("How are you doing?")
was intended to print output as
  Hi <name>, How are you doing ?
But it is printing the output as :
  Hi <name>,
  How are you doing?
What could be the problem ? Can you suggest the solution for the same ?

# Solution
The problem is that the last argument of the first statement is being considered as another string to be printed. It can be solved by using end = ''
  print ('Hi', name, end=', ')
  print ("How are you doing?")