Accept a filename from the user and print the extension of that file in Python – Programming, Pseudocode Example, C# Programming Example
Python 3

Accept a filename from the user and print the extension of that file in Python

Write a Python program to accept a filename from the user and print the extension of that file.

Python Code:

Output:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: