'''3. Write a Python program to extract the filename from a given path.'''

import os
file_location = os.path.basename(r"C:\Users\Sir_Praise\Documents\PYTHON LEARNING\ATM_machine.py")
print(file_location)

'''3. Write a Python program to extract the filename from a given path.'''

import os
file_location = os.path.basename(r"C:\Users\Sir_Praise\Documents\PYTHON LEARNING\ATM_machine.py")
print(file_location)

3. Write a Python program to extract the filename from a given path.