Task 2 Write a Python program that will ask the user to enter a word as an input. • If the length of the input string is less than 4, then your program should print the same string as an output. • If...




Must show it in Python:



Please show step by step with comments.



Please show it in simplest form.



Please don't use any functions




Please don't use any def func ()


Task 2<br>Write a Python program that will ask the user to enter a word as an input.<br>• If the length of the input string is less than 4, then your program should print the same string as an output.<br>• If the input string's length is greater than 3, then your program should add

Extracted text: Task 2 Write a Python program that will ask the user to enter a word as an input. • If the length of the input string is less than 4, then your program should print the same string as an output. • If the input string's length is greater than 3, then your program should add "er" at the end of the input string. • If the input string already ends with "er", then add "est" instead. • If the input string already ends with "est", then your program should print the same input string as an output. Example 1: Input: strong Output: stronger Example 2: Input: stronger Output: strongest Example 3: Input: strongest Output: strongest Example 4: Input: abc Output: abc

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here