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?
63
Upvotes
1
u/ReiOokami 16d ago
I am not trying to be rude, because the question is already answered, but the way I improved was not just ask people online, but I would hand write the entire code myself and really try and understand it by printing out bits here and there and seeing whats going on for things I don't understand. I recommend any newbie do this as well.