IT PYTHON
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...