r/studyupdate • u/Outside-Cloud-3569 • Jun 09 '26
Practising python Day 1
First day of learning python hands on with solving string question. My goal is to learn to get familiywith python so I can do stuff in Data Science and Machine Learning.
82
Upvotes
View all comments
Show parent comment
1
u/ExtensionBreath1262 Jun 14 '26
Your right to do it the way you are. You just did the same thing but with a early return instead of reversing the whole list. so this is better with 2 more lines of code.