Elaine Collins
Followers: 0 Following: 0
Statistics
1 Question
0 Answers
RANK
126,954
of 295,638
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
0
RANK
of 20,255
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 154,207
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
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' ...
6 years ago | 1 answer | 0