please help in this question or I will not mark you brainliest.
Attachments:
Answers
Answered by
0
Answer:
Sorry satavisha but l don't understand the question
Answered by
0
Answer:
print(a) => Welcome 2 All
It should have been print(a1) => WELCOME & ALL
Explanation:
There's perhaps a mistake in the definition of the function. Instead of print(a1) at the end of the definition of the function display(a), it's written print(a).
Line by line explanation:
a1 initialised to null string.
iterate for each next letter over the length of input a.
if it's a space append space to a1.
if it's a numerical digit then replace it with '&'.
if it's an alphabet, convert it to upper case.
at the end of processing the string inputted, print the string constructed in the function.
Similar questions
History,
20 days ago
Chemistry,
20 days ago
Hindi,
20 days ago
Math,
1 month ago
World Languages,
1 month ago
Economy,
9 months ago
India Languages,
9 months ago
Hindi,
9 months ago