Advertisement
ralphdc09

its102.md.wk.08.10.num03

Nov 11th, 2021
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. # Ralph Custodio
  2. # BSIT II-A
  3.  
  4. file_name = input("Input the Filename: ")
  5. file = file_name.split(".")
  6. file_extension = file[-1]
  7. print("The extension of the file is : " + repr(file_extension))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement