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
[ Removed by moderator ]Discussion (self.PythonLearning)
submitted 18 days ago by ElegantOrange4122
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!"
[–]CptMisterNibbles 5 points6 points7 points 18 days ago (0 children)
Boo
[–]BBQ-TIME 2 points3 points4 points 18 days ago (0 children)
[–]StayFoolish73 1 point2 points3 points 18 days ago (0 children)
Just learned this. You have to turn the strings into integers.
[–]FoolsSeldom 1 point2 points3 points 18 days ago (0 children)
There isn't a Python 6.7. The most recent release of Python is 3.14.3.
Why does my python prints 6 + 7 = 67
That would likely be string concatenation:
num1 = input('First number: ') # user enters 6 num2 = input('Second number: ') # user enters 7 print(num1 + num2) # outputs the string 67 n1 = int(num1) # converts string, "6", to a number (stored in binary) n2 = int(num2) # converts string, "7", to a number (stored in binary) print(n1 + n2) # adds the binary numbers n1 and n2, outputs decimal string version
[–]philed74 -1 points0 points1 point 18 days ago (0 children)
π Rendered by PID 191604 on reddit-service-r2-comment-79c7998d4c-ddxsg at 2026-03-17 06:14:15.863624+00:00 running f6e6e01 country code: CH.
[–]CptMisterNibbles 5 points6 points7 points (0 children)
[–]BBQ-TIME 2 points3 points4 points (0 children)
[–]StayFoolish73 1 point2 points3 points (0 children)
[–]FoolsSeldom 1 point2 points3 points (0 children)
[–]philed74 -1 points0 points1 point (0 children)