Ask from the user a string s print a string where all


In Python language,

Ask from the user a string s, print a string where all occurrences of its first char have been changed to '*', except do not change the first char itself. e.g. 'babble' yields 'ba**le'.

Assume that the string is length 1 or more. Also, Ask from the user to enter two strings a and b, print a single string with a and b separated by space ' ', except swap the first 2 chars of each string.

e.g.
'mix', pod' -> 'pox mid'
'dog', 'dinner' -> 'dig donner'. Assume a and b are length 2 or more.

(an explanation of the answer after the code would be superb)

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Ask from the user a string s print a string where all
Reference No:- TGS02906262

Expected delivery within 24 Hours