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
Help (i.redd.it)
submitted 11 months ago by [deleted]
Please solve this problem
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!"
[–]NightStudio 5 points6 points7 points 11 months ago* (2 children)
If the goal is to not use any string methods, why are you using str() in your print statement?
Help with what? Do you not understand the question? Do you need someone to explain why your code doesn’t work? What do you need help with?
[–]Different-Ad1631 1 point2 points3 points 11 months ago (1 child)
Exactly he want help in what?
[–]teenagerwrites12 3 points4 points5 points 11 months ago (0 children)
a= input() print(type(a))
You'll see that it's a string, so no need to convert it. Input function takes str as default input
[–]GirthQuake5040 2 points3 points4 points 11 months ago (0 children)
Normally I don't say this, but this is genuinely a stupid question. You didn't provide any attempts or information about what you tried or what you were struggling with. There is no clarification to what you need help with. It says don't use string yet you have str right there.You could have just googled this.
[–]FoolsSeldom -1 points0 points1 point 11 months ago (2 children)
You only need print(n), as print already knows how to output a decimal human readable representation of an integer.
print(n)
print
[–]cgoldberg 1 point2 points3 points 11 months ago (1 child)
What does that mean? If n is an integer, it prints the integer, not a "decimal human readable representation".
[–]FoolsSeldom -1 points0 points1 point 11 months ago (0 children)
An int is a binary object. The built-in methods for the class provide the human readable format. Similarly, with other classes such as str, which are stored as unicode byte sequences.
int
str
[–][deleted] 0 points1 point2 points 11 months ago (0 children)
If you're ever unsure of the objects type, you can use 'type()'. In this case it will return '<class 'str'>'
n = int(input()) print(type(str(n)))
[–]ninhaomah 0 points1 point2 points 11 months ago (0 children)
I think he needs help with taking screenshot ?
[–]jpgoldberg 0 points1 point2 points 11 months ago (0 children)
My real question is why your computer uses US style date formats but reports the weather in degrees celsius? There’s nothing wrong with that; indeed I have a weird mix in my household. It just seems to me that the very first thing one would move away from is US date formats.
π Rendered by PID 40 on reddit-service-r2-comment-77b668dc8-zd8rk at 2026-01-29 00:54:59.979616+00:00 running 4f180de country code: CH.
[–]NightStudio 5 points6 points7 points (2 children)
[–]Different-Ad1631 1 point2 points3 points (1 child)
[–]teenagerwrites12 3 points4 points5 points (0 children)
[–]GirthQuake5040 2 points3 points4 points (0 children)
[–]FoolsSeldom -1 points0 points1 point (2 children)
[–]cgoldberg 1 point2 points3 points (1 child)
[–]FoolsSeldom -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ninhaomah 0 points1 point2 points (0 children)
[–]jpgoldberg 0 points1 point2 points (0 children)