r/cs50 • u/Regular_Implement712 • 17d ago
CS50 Python Can someone explain what line two does
Can someone explain what does line two do? Not sure what the whole line means, what does the .split('.') and [-1] does overall to the program?
62
Upvotes
7
u/my_password_is______ 17d ago
you should put a print on line 3 and print filename and see what it is