Question: To obtain marks for the below exercises, do not use any Python built-in functions that are not in the lecture slides or class notes (such
To obtain marks for the below exercises, do not use any Python built-in functions that are not in the lecture slides or class notes (such as index, break or count). Instead, write your own control structures. The only built-in functions you are allowed to use are ones we learned in class such as append, len, range, print, and input.

2) Write a program that prompts the user to enter an integer number and draw a line such the line length is the input number. Your program should check for valid numbers. For example, if the number is less than 1, your program should print a message "Invalid input" and not draw a line. If the number > 25, your program should print a message "Input too large and also not draw a line. Otherwise your program will print out a line by repeating the '#' by the number entered by the user. Sample runs: Enter an integer: 8 ## # # # # # # Enter an integer: 0 Invalid input Enter an integer: 26 Input too large
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
