Please, need help for python For the following 4 questions, consider the followi
ID: 645354 • Letter: P
Question
Please, need help for python
For the following 4 questions, consider the following code fragment:
text = 'ab = a*b'
for c in text:
print(c, sep=' ', end=' ')
for c in text:
print(c, sep=' ', end=' ')
print(text)
19. Give the output that will be printed by these lines of code. Use an underscore _ to indicate a
space; an arrow to indicate a newline
20. How many visible characters (characters that have black in them) are output?
21. How many spaces are output?
22. How many newline characters are output?
Explanation / Answer
in the above questions insert _ and arrow in printf statement before that define arrow for new line.
according to programme 4 characters are visible.
2 spaces will be there in the output.
only 2 newlines are output.