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
Question 2 Important
Question 3
Question 4 Important
Question 5
Question 6
Question 7
Question 8
Question 9
Question 10 Important
Question 11
Question 12 Important
Question 13
Question 14 Important
Question 15
Question 16 Important
Question 17 Important
Question 18 Important
Question 19 You are here
Question 20
Past Year - 1 Mark Questions
Last updated at April 16, 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,…])