HD Webco wotren sktop/CSE110%20Lab%20Assignment%203.ipynb Search. Assignment 3 - .X r CSE110 Lab Assignment 3 (autosaved) Lo View Insert Cell Kernel Help Not Trusted Pythom 个 N Run Code Write a python...


HD Webco<br>wotren<br>sktop/CSE110%20Lab%20Assignment%203.ipynb<br>Search.<br>Assignment 3 - .X<br>r CSE110 Lab Assignment 3<br>(autosaved)<br>Lo<br>View<br>Insert<br>Cell<br>Kernel<br>Help<br>Not Trusted<br>Pythom<br>个<br>N Run<br>Code<br>Write a python program that takes 2 inputs from the user. The first input is a string and the second<br>input is a letter. The program should remove all occurences of the letter from the given string and<br>print the output. If the letter is not found in the string and the length of string is greater than 3, then<br>remove the first letter and last letter of the given string and print it. Otherwise print the string as it is.<br>[You can assume that all the input will be in lowercase letter]<br>Sample Input 1:<br>tanjiro kamado<br>a<br>Sample output 1:<br>tnjiro kmdo<br>Explanation: All 3 instances.of the character 'a' is removed from the innut String 'taniiro kamado' to<br>REDMI NOTE 9<br>AI QUAD CAMERA<br>Insert<br>

Extracted text: HD Webco wotren sktop/CSE110%20Lab%20Assignment%203.ipynb Search. Assignment 3 - .X r CSE110 Lab Assignment 3 (autosaved) Lo View Insert Cell Kernel Help Not Trusted Pythom 个 N Run Code Write a python program that takes 2 inputs from the user. The first input is a string and the second input is a letter. The program should remove all occurences of the letter from the given string and print the output. If the letter is not found in the string and the length of string is greater than 3, then remove the first letter and last letter of the given string and print it. Otherwise print the string as it is. [You can assume that all the input will be in lowercase letter] Sample Input 1: tanjiro kamado a Sample output 1: tnjiro kmdo Explanation: All 3 instances.of the character 'a' is removed from the innut String 'taniiro kamado' to REDMI NOTE 9 AI QUAD CAMERA Insert

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here