import os
file = input("Enter file name : ")
split = os.path.splitext(file)
print('The extension of the file is :')
if(split[1] == '.txt'):
    print("'Text file'")
elif(split[1] == '.c'):
    print("'C'")
elif(split[1] == '.cpp'):
    print("'C++'")
elif(split[1] == '.java'):
    print("'Java'")
elif(split[1] == '.py'):
    print("'Python'")


dfa12f6d6722413d9082602186e681f0bc484dc8
<mask token>

<mask token>
print('The extension of the file is :')
if split[1] == '.txt':
    print("'Text file'")
elif split[1] == '.c':
    print("'C'")
elif split[1] == '.cpp':
    print("'C++'")
elif split[1] == '.java':
    print("'Java'")
elif split[1] == '.py':
    print("'Python'")

<mask token>
file = input('Enter file name : ')
split = os.path.splitext(file)
print('The extension of the file is :')
if split[1] == '.txt':
    print("'Text file'")
elif split[1] == '.c':
    print("'C'")
elif split[1] == '.cpp':
    print("'C++'")
elif split[1] == '.java':
    print("'Java'")
elif split[1] == '.py':
    print("'Python'")

import os
file = input('Enter file name : ')
split = os.path.splitext(file)
print('The extension of the file is :')
if split[1] == '.txt':
    print("'Text file'")
elif split[1] == '.c':
    print("'C'")
elif split[1] == '.cpp':
    print("'C++'")
elif split[1] == '.java':
    print("'Java'")
elif split[1] == '.py':
    print("'Python'")

import os
file = input("Enter file name : ")
split = os.path.splitext(file)
print('The extension of the file is :')
if(split[1] == '.txt'):
    print("'Text file'")
elif(split[1] == '.c'):
    print("'C'")
elif(split[1] == '.cpp'):
    print("'C++'")
elif(split[1] == '.java'):
    print("'Java'")
elif(split[1] == '.py'):
    print("'Python'")

