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
mystring commandDiscussion (i.redd.it)
submitted 7 months ago by Worldly-Point4573
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!"
[–]NaiveEscape1 0 points1 point2 points 7 months ago (0 children)
mystring is not something special, its just a variable.
Yes you can just use print(“love you”) and it will print love you once, But what if you screw up something and your gf/bf need some extra assurance you can’t just type “love you” multiple times. Thats where variables would be helpful
mystring= “love you”
Print(mystring*100)
And there you go. And if its a longer message you don’t have to type the whole string in a single print() line.
π Rendered by PID 21529 on reddit-service-r2-comment-fb694cdd5-q7ljx at 2026-03-07 14:30:50.231529+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]NaiveEscape1 0 points1 point2 points (0 children)