Computer Science, asked by satavisha44, 1 month ago

please help in this question or I will not mark you brainliest. ​

Attachments:

Answers

Answered by SinghManvi020
0

Answer:

Sorry satavisha but l don't understand the question

Answered by kvnmurty
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