Question: python, please help with these 2 qs thanks in advance 2. 15 points Write a program saved as self.py, to open the file self.py for

python, please help with these 2 qs thanks in advance
2. 15 points Write a program saved as self.py, to open the file "self.py" for reading. Then read all the lines in this file and print them on the screen. Your program should implement try-except block A typical run (here, for obvious reasons, instead of self.py, another.py file was opened) showing the contents of your python file might look like: lb - int (input("please enter a lower bound ")) ubint (input("please enter an upper bound ")) wd - int (input("please enter a counting interval ")) for num in range (lb, ub+1, wd): print (num) 3. 15 points Write a program to ask the user for a name of a file, and two integers. It should then write in decreasing order the squares of all the integers between the ones specified by the user as strings (one per line) to the file specified by the user. Your program should implement try-except block A typical run might look like: contents of the file squares.txt created by this run: please enter the name of your output file squares.txt squares.tot - Notepad please enter a number 2 Eile Edit Format View Help please enter another 4 all done 16
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
