The program is an illustration of file manipulations
<h3>What are file manipulations?</h3>
File manipulations are program statements that are used to write & append to file, and also read from the file
<h3>The actual program in Python</h3>
Assume the file name is top10.txt, the program in Python where comments are used to explain each line is as follows:
#This opens the file
a_file = open("top10.txt")
#This reads the file contents
file_contents = a_file.read()
#This prints the contents
print(file_contents)
Read more about file manipulations at:
brainly.com/question/15683939
Answer:
Raman performed in Pune yesterday
Answer:
The answer is "Option c".
Explanation:
In the given visual basic code, an integer array "Inventory" is declared, that includes 3 elements, that are "357, 126, and 220". In the next line, a call stock function is used, in the function, the array is passed as a parameter and in array parameter, the index value that is "2" is passed. This function use label to print array index value, that is "220". and other options are incorrect that can be described as follows:
- Option a and Option b both are wrong because array indexing always starts with 0 and ends with n-1, and in this array, it will take index value 2, which is not equal to 357 and 126.