Hints(1): Need to use "for loop" for this task. Hints(2): Need to use print) function for printing newlines. For example: print(1) print(2) Output: 1 2 We need use print(end = "") to skip printing the...




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 ()


Hints(1): Need to use

Extracted text: Hints(1): Need to use "for loop" for this task. Hints(2): Need to use print) function for printing newlines. For example: print(1) print(2) Output: 1 2 We need use print(end = "") to skip printing the additional newline. For example: print(1, end =" ") print(2) Output:(prints the following output right next to the previous one) 12
Task 1<br>Write a Python program that will ask the user to input a string (containing exactly one word). Then your program should print subsequent substrings of the<br>given string as shown in the examples below.<br>============================:<br>========<br>===============<br>Example 1:<br>Input: BANGLA<br>Output:<br>B<br>ВА<br>BAN<br>BANG<br>BANGL<br>BANGLA<br>====:<br>===== ===<br>Example 2:<br>Input: DREAM<br>Output:<br>D<br>DR<br>DRE<br>DREA<br>DREAM<br>====:<br>======= ===<br>

Extracted text: Task 1 Write a Python program that will ask the user to input a string (containing exactly one word). Then your program should print subsequent substrings of the given string as shown in the examples below. ============================: ======== =============== Example 1: Input: BANGLA Output: B ВА BAN BANG BANGL BANGLA ====: ===== === Example 2: Input: DREAM Output: D DR DRE DREA DREAM ====: ======= ===

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here