

InterviewSolution
Saved Bookmarks
1. |
What is the current syntax of rename() a file?(a) rename(current_file_name, new_file_name)(b) rename(new_file_name, current_file_name,)(c) rename(()(current_file_name, new_file_name))(d) none of the mentionedThe question was posed to me during an internship interview.My question is taken from Files topic in portion Regular Expressions and Files of Python |
Answer» RIGHT choice is (a) RENAME(current_file_name, new_file_name) The explanation is: This is the CORRECT syntax which has shown below. rename(current_file_name, new_file_name) |
|