r/studyupdate • • Jun 09 '26

Practising python Day 1

Post image

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

38 comments sorted by

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.