PYTHON Make a function str_hashtag() that replaces the 1 , 2nd, 3d, 4th, and 5th character in 5 strings with (#). For example: first character in the first string is replaced by #, second character in...


PYTHON<br>Make a function str_hashtag() that replaces the 1 , 2nd, 3d, 4th, and 5th character in 5 strings with (#).<br>For example: first character in the first string is replaced by #, second character in the second string<br>is replaced by #, etc.<br>• Keep the word as it is in the list if the n number of letters is greater than the nth word.<br>• Screenshot your codes on your python complier and the result/output.<br>Sample Input 1:<br>Sample Input 2:<br>Sample Input 3:<br>You got here very quickly<br>Good morning ladies and gentlemen<br>She can sing very well<br>Sample output 1:<br>

Extracted text: PYTHON Make a function str_hashtag() that replaces the 1 , 2nd, 3d, 4th, and 5th character in 5 strings with (#). For example: first character in the first string is replaced by #, second character in the second string is replaced by #, etc. • Keep the word as it is in the list if the n number of letters is greater than the nth word. • Screenshot your codes on your python complier and the result/output. Sample Input 1: Sample Input 2: Sample Input 3: You got here very quickly Good morning ladies and gentlemen She can sing very well Sample output 1: "Hou get helte ver# quic#ly" Sample Output 2: "Hood merning laies and genttemen" Sample Output 3: "whe cin sing ver well"

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here