with open("rainfall.txt","r") as inFile:
aLine = inFile.readLine()
with open("rainfall.txt", "r") as inFile:
lineList = inFile.readLines()
with open("rainfall.txt", "r") as inFile:
fileString = inFile.read())
print(aLine)
print(lineList)
print(fileString)
Answer::
1.why Python is a fixed format programming language.?
Answer :: Python is an interpreted, high-level and general-purpose programming language.Python is a simple and robust language and used to bypassed vulnerabilities of the other systems.As you can see in code number of statements executes in a fixed format.
2. print statements as follows:
3. Differences between readLine(), readLines(), and read()
Answer::
Note:: (Refer above image)
Get Answers For Free
Most questions answered within 1 hours.