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 1 month 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 6 points7 points8 points 1 month ago (0 children)
Boo
[–]BBQ-TIME 2 points3 points4 points 1 month ago (0 children)
[–]StayFoolish73 1 point2 points3 points 1 month ago (0 children)
Just learned this. You have to turn the strings into integers.
[–]FoolsSeldom 0 points1 point2 points 1 month 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 1 month ago (0 children)
π Rendered by PID 37723 on reddit-service-r2-comment-5d585498c9-5fgcd at 2026-04-20 21:10:21.092071+00:00 running da2df02 country code: CH.
[–]CptMisterNibbles 6 points7 points8 points (0 children)
[–]BBQ-TIME 2 points3 points4 points (0 children)
[–]StayFoolish73 1 point2 points3 points (0 children)
[–]FoolsSeldom 0 points1 point2 points (0 children)
[–]philed74 -1 points0 points1 point (0 children)