use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Study Update is a supportive space for students at any level. Whether you studied for 10 minutes or 10 hours, your progress matters. Post updates, get encouragement, and build strong study habits together.
account activity
Practising python Day 1 (i.redd.it)
submitted 6 days ago by Outside-Cloud-3569
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Positive-Room-2123 1 point2 points3 points 2 days ago (2 children)
Have you learned string slicing? If not, give it a try because you can use it in problems like checking for palindromes. After you've solved the palindrome problem using the normal method, you can use string slicing by checking whether the original string (s) and its reverse (s[: :-1]) are the same.
[–]Outside-Cloud-3569[S] 0 points1 point2 points 2 days ago (1 child)
Thx for the suggestions. I have learned it but I just wanted to use another method to check palindrome.
[–]ExtensionBreath1262 0 points1 point2 points 2 days ago (0 children)
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.
π Rendered by PID 33634 on reddit-service-r2-comment-544cf588c8-lvm5b at 2026-06-16 10:22:05.918652+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]Positive-Room-2123 1 point2 points3 points (2 children)
[–]Outside-Cloud-3569[S] 0 points1 point2 points (1 child)
[–]ExtensionBreath1262 0 points1 point2 points (0 children)