adplus-dvertising
frame-decoration

Question

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 mentioned

Posted under Python

Answer: (a).rename(current_file_name, new_file_name)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the current syntax of rename() a file?