Community Profile

photo

Elaine Collins


Active since 2018

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


How do I write a code to verify that the filename entered by the user ends in .txt?
This is what I have so far. filename = input('Enter your filename ending in .txt: ', 's'); s1 = '.txt'; s2 == 'filename' ...

5 years ago | 1 answer | 0

1

answer