We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d33999b commit bd685b3Copy full SHA for bd685b3
print_extension.py
@@ -0,0 +1,4 @@
1
+file_name = input('Enter the file name with extension followed by a dot: ')
2
+extension_name = file_name.split('.')
3
+print(f'the ext is: {repr(extension_name[-1])}')
4
+
0 commit comments