Why do we use the join () function? Give its syntax.
Answer:
The join( ) method is used to join various path components in the os.path module.
Syntax:
os.path.join ([dir1, dir2,…])
Past Year - 1 Mark Questions
Past Year - 1 Mark Questions
Last updated at Dec. 13, 2024 by Teachoo
Answer:
The join( ) method is used to join various path components in the os.path module.
Syntax:
os.path.join ([dir1, dir2,…])