Answer:
Explanation:
iname=input("Enter the file name: ")
inputfile=open(iname,'r')
lines=[]
for line in inputfile:
lines.append(line)
inputfile.close()
print("The file has ",len(lines)," lines")
while True:
linenumber=int(input("Enter the line number or 0 to quit: "))
if linenumber==0:
break
elif linenumber > len(lines):
print("Error: line number must be less than ", len(lines))
else:
print(linenumber, " : ", lines[linenumber - 1])
The code that remove duplicate is as follows:
def remove_duplicate(mylist):
mylist = list(dict.fromkeys(mylist))
return mylist
print(remove_duplicate([1, 1, 2, 3, 3, 5, 6, 7]))
<h3>Code explanation</h3>
The code is written in python.
- we defined a function named "remove_duplicate" and it accept the parameter "mylist".
- The variable "mylist" is used to store the new value after the duplicate vallues has been removed.
- Then, wed returned mylist.
- Finally, we call the function with the print statement . The function takes the required parameter.
learn more on python here: brainly.com/question/21126936
The permission to give the executive group the right to read, change, and assign permissions to document is Give executive Change to shared permissions
<h3>What do you mean of executive?</h3>
An executive is seen as a kind of a powerful person and they are the people that are known to be responsible for making things go on or run smoothly in any organization.
Therefore, The permission to give the executive group the right to read, change, and assign permissions to document is Give executive Change to shared permissions
Learn more about executive from
brainly.com/question/838027
#SPJ1
One step is to right click on the word to add it to her personal dictionary. or, <span><span>Press F7. Word starts the spelling and grammar checking utility. </span><span>Make corrections, as appropriate, when prompted.
</span></span>
However, one can create a macro that would do the conversions :
1) Identify a list of words whose spelling you want to convert.2) Turn on the macro recorder. 3) Use the Replace feature to replace the spellings.4) Turn off the macro recorder.
The macro will do a conversion from one to the other. Later, as we have more words that need to be automatically replaced, we can just edit the macro and add those words.