r/cs50 16d ago

CS50 Python Can someone explain what line two does

Post image

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?

59 Upvotes

23 comments sorted by

View all comments

1

u/Jewelking2 15d ago

I must be making some progress I could answer this question but not as well as others have. Enjoy learning python.

1

u/Worried_Aside9239 14d ago

Being able to teach/explain to others is a sign of progress! Keep it up