IT PYTHON




![goto/coardsinden y Questio draw-rectangle(sides[inde][0]. sides[indeilli» pair in sides for xy in coords: goto coords[pair])](http://img.homeworklib.com/images/6b227a81-9b92-4ad1-9c16-739fb3fa9853.png?x-oss-process=image/resize,w_560)
![goto(coords[index]) draw rectangle(sides[index)미, sides[index! pair in sides for xy in coords: goto coords[pairl) QUEoy) Supp](http://img.homeworklib.com/images/e5edacd9-56d4-44bb-9a8a-f83ae2f8afba.png?x-oss-process=image/resize,w_560)


Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Question 1:
Answer :A copy of the file infile.txt is made (except in double line spacing) and saved as outfile.txt in the current directory.
Explanation :From a file infile.txt a new file with name outfile.txt will be created.
**************************
Question 2:
Answer :<li>
Explanation :List item <li> is used to create bulleted items.
**************************
Question 4 :
Answer :write and read
Explanation :The open() function in python returns a file object and this file object can used to read a file, write a file and modify file.
NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
IT PYTHON QUESTION1 Consider the following Python code, where infile.txt and outfile.txt both exist in the current directory 'z' ) 。1d = open ( ' infile. txt ' , for line in o...
Suppose there are two non-empty list variables of equal length in Python called coords and sides. The variable coords contains sub-lists of size 2, with each of these values representing an x and a y co-ordinate. The variable sides also contains sub-lists of size 2, with each of these values representing firstly the length thern the width of a rectangle. Also assume there is also a function in Python called draw_rectangle which takes as its parameters two integers representing firstly...