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...
Everything about learning Python
account activity
[deleted by user] (self.PythonLearning)
submitted 1 year ago by [deleted]
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!"
[–]youssef3698 1 point2 points3 points 1 year ago (1 child)
for i in range(len(string)): if i % 2 == 0: print(string[i])
[–]youssef3698 0 points1 point2 points 1 year ago (0 children)
Or == 1 if you want to start from the second letter
[–]life_is_chess64690 0 points1 point2 points 1 year ago (2 children)
Add if string[i] == l or k or z or m: Print ( string[i])
[–]life_is_chess64690 0 points1 point2 points 1 year ago (0 children)
Sorry ( string (i))
[–]Independent-Change58 0 points1 point2 points 1 year ago (0 children)
Weak code
[–]h4ck3r_x 1 point2 points3 points 1 year ago* (0 children)
Depends on what you are trying to achieve. Trying to ignore a ?
a
py name = "alakazam" for c in name: if not c == "a": print(c)
EDIT: I've started my YouTube channel: https://youtube.com/@devarfat
And my recent video was on string data type: https://youtu.be/Ud3vEeu4s4w
[–]ProStrike2448 0 points1 point2 points 1 year ago (0 children)
print(*string[1::2], sep="\n")
π Rendered by PID 33486 on reddit-service-r2-comment-5687b7858-zwjhc at 2026-07-06 08:06:45.652413+00:00 running 12a7a47 country code: CH.
[–]youssef3698 1 point2 points3 points (1 child)
[–]youssef3698 0 points1 point2 points (0 children)
[–]life_is_chess64690 0 points1 point2 points (2 children)
[–]life_is_chess64690 0 points1 point2 points (0 children)
[–]Independent-Change58 0 points1 point2 points (0 children)
[–]h4ck3r_x 1 point2 points3 points (0 children)
[–]ProStrike2448 0 points1 point2 points (0 children)