jagomart
digital resources
picture1_Python Pdf 185818 | Assignment13


 169x       Filetype PDF       File size 0.33 MB       Source: etut.edu.tm


File: Python Pdf 185818 | Assignment13
modernisation of higher education in central asia through new technologies hiedtec 13 assignment 1 how to read this excel file in python solution import csv with open names csv r ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 2 years ago
Partial capture of text on file.
                     MODERNISATION  OF  HIGHER  EDUCATION 
                               IN  CENTRAL  ASIA 
                            THROUGH  NEW  TECHNOLOGIES 
                                     ( HiEdTec ) 
                            
                            
                       13. Assignment 
                            
        1.  How to read this excel file in python? 
           
                                                 
        Solution: 
      
     import csv 
     with open('names.csv','r')as csv_file: 
     csv_reader=csv.reader('csv_file') 
     for line in csv_reader: 
     print(line) 
      
     2. A file name and an integer N (> 1) are given. Create a file of integers with the 
     given name and write N first positive even numbers (2, 4, …) to this file. 
     3. A file name and two real numbers A, D are given. Create a file of real 
     numbers with the given name and write 10 first terms of an arithmetic 
     sequence with the first term A and the common difference D (A, A + D, A + 2·D, …, 
     A + 9·D) to this file. 
     4. Four file names are given. Find the amount of files with the given names that 
     are located in the working directory. 
The words contained in this file might help you see if this file matches what you are looking for:

...Modernisation of higher education in central asia through new technologies hiedtec assignment how to read this excel file python solution import csv with open names r as reader for line print a name and an integer n are given create integers the write first positive even numbers two real d terms arithmetic sequence term common difference four find amount files that located working directory...

no reviews yet
Please Login to review.