14
János Tamási
https://www.linkedin.com/in/janostamasi12
Last seen 7 months ago
Member for 9 years, 18 days
Difficulty Normal
I'm a chemical engineer living in Budapest and a passionate programmer learning Python at CheckiO. I believe in God, our Father, his son, Jesus Christ and the Holy Spirit, who gives us life and joy every day.
I think there is a mistake in the code: len(RANKS) == 8 , so len(RANKS) - 1 == 7 , and your code says: if file_index < len(RANKS) - 1: so file index needs to be 6 or smaller, but in fact 7 is also a valid file option. Other thing that if you deal with files why do you use RANKS in the code?
More
Thank you for your help. I'm almost a complete beginner- could you tell me how would that partial thing work?
More
Thank you. From now on I will take care of spaces! ;) And I will use *args too! :)
More
I need to write a codereview for quest points so I write down how I figured out what your code actually means.
except ValueError: point = len(filename) - this is the case if the filename starts with a point and there is no other point so basically the no stem case.
In this case the filename[point:]
More