SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
2 Points Suppose that the file out.txt is 48 lines long. If we executed the lines of code below
from a Python file in the same folder as out.txt, how many lines long would out.txt be after the
program finished executing? 1 2 48 49 A Runtime Error would occur
Q4 CSV files 3 Points file = open ('info.csv', ' r ' ) data = file, readiines () file, close( ) total = 0
for row in datat row = row.strip() entries = row. Bplit (,) for val in entries: Suppose that info.csv
is a CSV (comma-separated values) file, where the rows and columns of the CSV file represent
the rows and columns of a matrix of integers (there's no header row/column). Fill in the blank in
the program above with a single line of code, such that by the end of the program, the variable
total represents the sum of all the integers in the CSV file.

Weitere ähnliche Inhalte

Ähnlich wie 2 Points Suppose that the file out.txt is 48 lines long. If we execut.pdf

Acm aleppo cpc training ninth session
Acm aleppo cpc training ninth sessionAcm aleppo cpc training ninth session
Acm aleppo cpc training ninth sessionAhmad Bashar Eter
 
Type header file in c++ and its function
Type header file in c++ and its functionType header file in c++ and its function
Type header file in c++ and its functionFrankie Jones
 
It’s sometimes useful to make a little language for a simple problem.pdf
It’s sometimes useful to make a little language for a simple problem.pdfIt’s sometimes useful to make a little language for a simple problem.pdf
It’s sometimes useful to make a little language for a simple problem.pdfarri2009av
 
C programming session 08
C programming session 08C programming session 08
C programming session 08Dushmanta Nath
 
Python help- You will be writing an encryption program for an IT compa.pdf
Python help- You will be writing an encryption program for an IT compa.pdfPython help- You will be writing an encryption program for an IT compa.pdf
Python help- You will be writing an encryption program for an IT compa.pdfChristopherkUzHunter
 
Stream Based Input Output
Stream Based Input OutputStream Based Input Output
Stream Based Input OutputBharat17485
 
The actual illustration of values is decided by the machine design (.pdf
The actual illustration of values is decided by the machine design (.pdfThe actual illustration of values is decided by the machine design (.pdf
The actual illustration of values is decided by the machine design (.pdfanyacarpets
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdffazilfootsteps
 
manish python.pptx
manish python.pptxmanish python.pptx
manish python.pptxssuser92d141
 
import java.io.BufferedReader;import java.io.BufferedWriter;.docx
import java.io.BufferedReader;import java.io.BufferedWriter;.docximport java.io.BufferedReader;import java.io.BufferedWriter;.docx
import java.io.BufferedReader;import java.io.BufferedWriter;.docxwilcockiris
 
Systematic error codes implimentation for matched data encoded 47405
Systematic error codes implimentation for matched data encoded 47405Systematic error codes implimentation for matched data encoded 47405
Systematic error codes implimentation for matched data encoded 47405EditorIJAERD
 
Wireshark Lab TCP v6.0 Supplement to Computer Networking.docx
Wireshark Lab TCP v6.0  Supplement to Computer Networking.docxWireshark Lab TCP v6.0  Supplement to Computer Networking.docx
Wireshark Lab TCP v6.0 Supplement to Computer Networking.docxalanfhall8953
 
Chapter 10 Library Function
Chapter 10 Library FunctionChapter 10 Library Function
Chapter 10 Library FunctionDeepak Singh
 
Basic explanation to md5 implementation in C
Basic explanation to md5 implementation in CBasic explanation to md5 implementation in C
Basic explanation to md5 implementation in CSourav Punoriyar
 
Memory layout in C++ vis a-vis polymorphism and padding bits
Memory layout in C++ vis a-vis polymorphism and padding bitsMemory layout in C++ vis a-vis polymorphism and padding bits
Memory layout in C++ vis a-vis polymorphism and padding bitsSomenath Mukhopadhyay
 

Ähnlich wie 2 Points Suppose that the file out.txt is 48 lines long. If we execut.pdf (20)

Acm aleppo cpc training ninth session
Acm aleppo cpc training ninth sessionAcm aleppo cpc training ninth session
Acm aleppo cpc training ninth session
 
Type header file in c++ and its function
Type header file in c++ and its functionType header file in c++ and its function
Type header file in c++ and its function
 
It’s sometimes useful to make a little language for a simple problem.pdf
It’s sometimes useful to make a little language for a simple problem.pdfIt’s sometimes useful to make a little language for a simple problem.pdf
It’s sometimes useful to make a little language for a simple problem.pdf
 
Day2
Day2Day2
Day2
 
C programming session 08
C programming session 08C programming session 08
C programming session 08
 
Python help- You will be writing an encryption program for an IT compa.pdf
Python help- You will be writing an encryption program for an IT compa.pdfPython help- You will be writing an encryption program for an IT compa.pdf
Python help- You will be writing an encryption program for an IT compa.pdf
 
Stream Based Input Output
Stream Based Input OutputStream Based Input Output
Stream Based Input Output
 
The actual illustration of values is decided by the machine design (.pdf
The actual illustration of values is decided by the machine design (.pdfThe actual illustration of values is decided by the machine design (.pdf
The actual illustration of values is decided by the machine design (.pdf
 
CPP homework help
CPP homework helpCPP homework help
CPP homework help
 
ENGLISH PYTHON.ppt
ENGLISH PYTHON.pptENGLISH PYTHON.ppt
ENGLISH PYTHON.ppt
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdf
 
manish python.pptx
manish python.pptxmanish python.pptx
manish python.pptx
 
import java.io.BufferedReader;import java.io.BufferedWriter;.docx
import java.io.BufferedReader;import java.io.BufferedWriter;.docximport java.io.BufferedReader;import java.io.BufferedWriter;.docx
import java.io.BufferedReader;import java.io.BufferedWriter;.docx
 
Python Scipy Numpy
Python Scipy NumpyPython Scipy Numpy
Python Scipy Numpy
 
Systematic error codes implimentation for matched data encoded 47405
Systematic error codes implimentation for matched data encoded 47405Systematic error codes implimentation for matched data encoded 47405
Systematic error codes implimentation for matched data encoded 47405
 
Wireshark Lab TCP v6.0 Supplement to Computer Networking.docx
Wireshark Lab TCP v6.0  Supplement to Computer Networking.docxWireshark Lab TCP v6.0  Supplement to Computer Networking.docx
Wireshark Lab TCP v6.0 Supplement to Computer Networking.docx
 
Chapter 10 Library Function
Chapter 10 Library FunctionChapter 10 Library Function
Chapter 10 Library Function
 
Basic explanation to md5 implementation in C
Basic explanation to md5 implementation in CBasic explanation to md5 implementation in C
Basic explanation to md5 implementation in C
 
Memory layout in C++ vis a-vis polymorphism and padding bits
Memory layout in C++ vis a-vis polymorphism and padding bitsMemory layout in C++ vis a-vis polymorphism and padding bits
Memory layout in C++ vis a-vis polymorphism and padding bits
 
Kavitha_python.ppt
Kavitha_python.pptKavitha_python.ppt
Kavitha_python.ppt
 

Mehr von allystr

2. (20 marks) Use ID3 to learn a decision tree for the foll.pdf
 2. (20 marks) Use ID3 to learn a decision tree for the foll.pdf 2. (20 marks) Use ID3 to learn a decision tree for the foll.pdf
2. (20 marks) Use ID3 to learn a decision tree for the foll.pdfallystr
 
2. (10) Given IP address 192.168.1.024, Assume each LAN should host.pdf
 2. (10) Given IP address 192.168.1.024, Assume each LAN should host.pdf 2. (10) Given IP address 192.168.1.024, Assume each LAN should host.pdf
2. (10) Given IP address 192.168.1.024, Assume each LAN should host.pdfallystr
 
2. (10 points) Over the last decade researchers have been working act.pdf
 2. (10 points) Over the last decade researchers have been working act.pdf 2. (10 points) Over the last decade researchers have been working act.pdf
2. (10 points) Over the last decade researchers have been working act.pdfallystr
 
2. (10 points) Let XP, and let ^ denote the MLE of . Suppose that h i.pdf
 2. (10 points) Let XP, and let ^ denote the MLE of . Suppose that h i.pdf 2. (10 points) Let XP, and let ^ denote the MLE of . Suppose that h i.pdf
2. (10 points) Let XP, and let ^ denote the MLE of . Suppose that h i.pdfallystr
 
2. (10 points) Suppose X1,�,Xn are i.i.d. N(,2) with =0 known. Show t.pdf
 2. (10 points) Suppose X1,�,Xn are i.i.d. N(,2) with =0 known. Show t.pdf 2. (10 points) Suppose X1,�,Xn are i.i.d. N(,2) with =0 known. Show t.pdf
2. (10 points) Suppose X1,�,Xn are i.i.d. N(,2) with =0 known. Show t.pdfallystr
 
2- In a random sample of 200 people, 154 said that they watched educa.pdf
 2- In a random sample of 200 people, 154 said that they watched educa.pdf 2- In a random sample of 200 people, 154 said that they watched educa.pdf
2- In a random sample of 200 people, 154 said that they watched educa.pdfallystr
 
2- Solve the linear system y=[1141]y.pdf
 2- Solve the linear system y=[1141]y.pdf 2- Solve the linear system y=[1141]y.pdf
2- Solve the linear system y=[1141]y.pdfallystr
 
2- The author didnt finish his biography on the agreed date in the c.pdf
 2- The author didnt finish his biography on the agreed date in the c.pdf 2- The author didnt finish his biography on the agreed date in the c.pdf
2- The author didnt finish his biography on the agreed date in the c.pdfallystr
 
2) Use the Table (below) to answer the questions that follow. It cont.pdf
 2) Use the Table (below) to answer the questions that follow. It cont.pdf 2) Use the Table (below) to answer the questions that follow. It cont.pdf
2) Use the Table (below) to answer the questions that follow. It cont.pdfallystr
 
2) Let X1,X2,�Xn are i.i.d random sample from P() a) Find the Suffici.pdf
 2) Let X1,X2,�Xn are i.i.d random sample from P() a) Find the Suffici.pdf 2) Let X1,X2,�Xn are i.i.d random sample from P() a) Find the Suffici.pdf
2) Let X1,X2,�Xn are i.i.d random sample from P() a) Find the Suffici.pdfallystr
 
2) Of those mountain climbers who attempt to climb Mt. McKinley, only.pdf
 2) Of those mountain climbers who attempt to climb Mt. McKinley, only.pdf 2) Of those mountain climbers who attempt to climb Mt. McKinley, only.pdf
2) Of those mountain climbers who attempt to climb Mt. McKinley, only.pdfallystr
 
2) [50 points ] Families have to make decisions about child care. Opt.pdf
 2) [50 points ] Families have to make decisions about child care. Opt.pdf 2) [50 points ] Families have to make decisions about child care. Opt.pdf
2) [50 points ] Families have to make decisions about child care. Opt.pdfallystr
 
2) Let ci be the average cost for firm i (so that firms may have diff.pdf
 2) Let ci be the average cost for firm i (so that firms may have diff.pdf 2) Let ci be the average cost for firm i (so that firms may have diff.pdf
2) Let ci be the average cost for firm i (so that firms may have diff.pdfallystr
 
2) Consider the following subnet. Distance vector routing is used, an.pdf
 2) Consider the following subnet. Distance vector routing is used, an.pdf 2) Consider the following subnet. Distance vector routing is used, an.pdf
2) Consider the following subnet. Distance vector routing is used, an.pdfallystr
 
2) Consider the joint probability density f(x,y)={xy0�for�1x73�and.pdf
 2) Consider the joint probability density f(x,y)={xy0�for�1x73�and.pdf 2) Consider the joint probability density f(x,y)={xy0�for�1x73�and.pdf
2) Consider the joint probability density f(x,y)={xy0�for�1x73�and.pdfallystr
 
2 Problem 1. Recursion-Video rankings. ( 8 marks) The InitaVid social.pdf
 2 Problem 1. Recursion-Video rankings. ( 8 marks) The InitaVid social.pdf 2 Problem 1. Recursion-Video rankings. ( 8 marks) The InitaVid social.pdf
2 Problem 1. Recursion-Video rankings. ( 8 marks) The InitaVid social.pdfallystr
 
2 Let X and Y be two independent random variables with the property t.pdf
 2 Let X and Y be two independent random variables with the property t.pdf 2 Let X and Y be two independent random variables with the property t.pdf
2 Let X and Y be two independent random variables with the property t.pdfallystr
 
2 Parameter Stability Test (Chow Test) Considering 1940 a period w.pdf
 2 Parameter Stability Test (Chow Test) Considering 1940 a period w.pdf 2 Parameter Stability Test (Chow Test) Considering 1940 a period w.pdf
2 Parameter Stability Test (Chow Test) Considering 1940 a period w.pdfallystr
 
2 Let X and Y be two independent random variables with the proper.pdf
 2 Let X and Y be two independent random variables with the proper.pdf 2 Let X and Y be two independent random variables with the proper.pdf
2 Let X and Y be two independent random variables with the proper.pdfallystr
 
19. Blood type is controlled by a gene with multiple alleles. A pro.pdf
 19. Blood type is controlled by a gene with multiple alleles. A pro.pdf 19. Blood type is controlled by a gene with multiple alleles. A pro.pdf
19. Blood type is controlled by a gene with multiple alleles. A pro.pdfallystr
 

Mehr von allystr (20)

2. (20 marks) Use ID3 to learn a decision tree for the foll.pdf
 2. (20 marks) Use ID3 to learn a decision tree for the foll.pdf 2. (20 marks) Use ID3 to learn a decision tree for the foll.pdf
2. (20 marks) Use ID3 to learn a decision tree for the foll.pdf
 
2. (10) Given IP address 192.168.1.024, Assume each LAN should host.pdf
 2. (10) Given IP address 192.168.1.024, Assume each LAN should host.pdf 2. (10) Given IP address 192.168.1.024, Assume each LAN should host.pdf
2. (10) Given IP address 192.168.1.024, Assume each LAN should host.pdf
 
2. (10 points) Over the last decade researchers have been working act.pdf
 2. (10 points) Over the last decade researchers have been working act.pdf 2. (10 points) Over the last decade researchers have been working act.pdf
2. (10 points) Over the last decade researchers have been working act.pdf
 
2. (10 points) Let XP, and let ^ denote the MLE of . Suppose that h i.pdf
 2. (10 points) Let XP, and let ^ denote the MLE of . Suppose that h i.pdf 2. (10 points) Let XP, and let ^ denote the MLE of . Suppose that h i.pdf
2. (10 points) Let XP, and let ^ denote the MLE of . Suppose that h i.pdf
 
2. (10 points) Suppose X1,�,Xn are i.i.d. N(,2) with =0 known. Show t.pdf
 2. (10 points) Suppose X1,�,Xn are i.i.d. N(,2) with =0 known. Show t.pdf 2. (10 points) Suppose X1,�,Xn are i.i.d. N(,2) with =0 known. Show t.pdf
2. (10 points) Suppose X1,�,Xn are i.i.d. N(,2) with =0 known. Show t.pdf
 
2- In a random sample of 200 people, 154 said that they watched educa.pdf
 2- In a random sample of 200 people, 154 said that they watched educa.pdf 2- In a random sample of 200 people, 154 said that they watched educa.pdf
2- In a random sample of 200 people, 154 said that they watched educa.pdf
 
2- Solve the linear system y=[1141]y.pdf
 2- Solve the linear system y=[1141]y.pdf 2- Solve the linear system y=[1141]y.pdf
2- Solve the linear system y=[1141]y.pdf
 
2- The author didnt finish his biography on the agreed date in the c.pdf
 2- The author didnt finish his biography on the agreed date in the c.pdf 2- The author didnt finish his biography on the agreed date in the c.pdf
2- The author didnt finish his biography on the agreed date in the c.pdf
 
2) Use the Table (below) to answer the questions that follow. It cont.pdf
 2) Use the Table (below) to answer the questions that follow. It cont.pdf 2) Use the Table (below) to answer the questions that follow. It cont.pdf
2) Use the Table (below) to answer the questions that follow. It cont.pdf
 
2) Let X1,X2,�Xn are i.i.d random sample from P() a) Find the Suffici.pdf
 2) Let X1,X2,�Xn are i.i.d random sample from P() a) Find the Suffici.pdf 2) Let X1,X2,�Xn are i.i.d random sample from P() a) Find the Suffici.pdf
2) Let X1,X2,�Xn are i.i.d random sample from P() a) Find the Suffici.pdf
 
2) Of those mountain climbers who attempt to climb Mt. McKinley, only.pdf
 2) Of those mountain climbers who attempt to climb Mt. McKinley, only.pdf 2) Of those mountain climbers who attempt to climb Mt. McKinley, only.pdf
2) Of those mountain climbers who attempt to climb Mt. McKinley, only.pdf
 
2) [50 points ] Families have to make decisions about child care. Opt.pdf
 2) [50 points ] Families have to make decisions about child care. Opt.pdf 2) [50 points ] Families have to make decisions about child care. Opt.pdf
2) [50 points ] Families have to make decisions about child care. Opt.pdf
 
2) Let ci be the average cost for firm i (so that firms may have diff.pdf
 2) Let ci be the average cost for firm i (so that firms may have diff.pdf 2) Let ci be the average cost for firm i (so that firms may have diff.pdf
2) Let ci be the average cost for firm i (so that firms may have diff.pdf
 
2) Consider the following subnet. Distance vector routing is used, an.pdf
 2) Consider the following subnet. Distance vector routing is used, an.pdf 2) Consider the following subnet. Distance vector routing is used, an.pdf
2) Consider the following subnet. Distance vector routing is used, an.pdf
 
2) Consider the joint probability density f(x,y)={xy0�for�1x73�and.pdf
 2) Consider the joint probability density f(x,y)={xy0�for�1x73�and.pdf 2) Consider the joint probability density f(x,y)={xy0�for�1x73�and.pdf
2) Consider the joint probability density f(x,y)={xy0�for�1x73�and.pdf
 
2 Problem 1. Recursion-Video rankings. ( 8 marks) The InitaVid social.pdf
 2 Problem 1. Recursion-Video rankings. ( 8 marks) The InitaVid social.pdf 2 Problem 1. Recursion-Video rankings. ( 8 marks) The InitaVid social.pdf
2 Problem 1. Recursion-Video rankings. ( 8 marks) The InitaVid social.pdf
 
2 Let X and Y be two independent random variables with the property t.pdf
 2 Let X and Y be two independent random variables with the property t.pdf 2 Let X and Y be two independent random variables with the property t.pdf
2 Let X and Y be two independent random variables with the property t.pdf
 
2 Parameter Stability Test (Chow Test) Considering 1940 a period w.pdf
 2 Parameter Stability Test (Chow Test) Considering 1940 a period w.pdf 2 Parameter Stability Test (Chow Test) Considering 1940 a period w.pdf
2 Parameter Stability Test (Chow Test) Considering 1940 a period w.pdf
 
2 Let X and Y be two independent random variables with the proper.pdf
 2 Let X and Y be two independent random variables with the proper.pdf 2 Let X and Y be two independent random variables with the proper.pdf
2 Let X and Y be two independent random variables with the proper.pdf
 
19. Blood type is controlled by a gene with multiple alleles. A pro.pdf
 19. Blood type is controlled by a gene with multiple alleles. A pro.pdf 19. Blood type is controlled by a gene with multiple alleles. A pro.pdf
19. Blood type is controlled by a gene with multiple alleles. A pro.pdf
 

Kürzlich hochgeladen

Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 

Kürzlich hochgeladen (20)

Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 

2 Points Suppose that the file out.txt is 48 lines long. If we execut.pdf

  • 1. 2 Points Suppose that the file out.txt is 48 lines long. If we executed the lines of code below from a Python file in the same folder as out.txt, how many lines long would out.txt be after the program finished executing? 1 2 48 49 A Runtime Error would occur Q4 CSV files 3 Points file = open ('info.csv', ' r ' ) data = file, readiines () file, close( ) total = 0 for row in datat row = row.strip() entries = row. Bplit (,) for val in entries: Suppose that info.csv is a CSV (comma-separated values) file, where the rows and columns of the CSV file represent the rows and columns of a matrix of integers (there's no header row/column). Fill in the blank in the program above with a single line of code, such that by the end of the program, the variable total represents the sum of all the integers in the CSV file.