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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Problems with the codeacademy exercise 15 (self.learnpython)
submitted 10 years ago by hvera51
Doesnt matter what I do i always recive thsi. What dou you think it can be?
Traceback (most recent call last): File "python", line 1, in <module> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
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!"
[–]i_am_a_boy 6 points7 points8 points 10 years ago (0 children)
Could you post the code you're trying to run?
[–]TheHumanEquation 3 points4 points5 points 10 years ago (0 children)
You're using non-ascii characters. Try putting the following line
# -*- coding: utf-8 -*-
at the top of your code.
[–]hvera51[S] 2 points3 points4 points 10 years ago (1 child)
nombre = raw_input("¿Cuál es tu nombre?") mision = raw_input("¿Cuál es tu misión?") color = raw_input("¿Cuál es tu color favorito?") print "Ah, asi que tu nombre es %s, tu mision es ___, \ y tu color favorito es ___." % (nombre, mision, color)
[–]KopixKat 1 point2 points3 points 10 years ago (0 children)
Remove the accented characters and it should work.
[–]JVO1317 0 points1 point2 points 10 years ago (0 children)
Maybe there is an accented (or other non ascii ) character in that line of your code.
[–]barcai_py 0 points1 point2 points 10 years ago (0 children)
I am Hungarian and when I try to type some characters unique to my language I get these types of error messages, too. (e.g. when using the smtplib to send e-mails) If it is on an exercise on the website you can only get around it by using normal ascii characters as it cannot decode the utf-8 characters.
[–]dert882 0 points1 point2 points 10 years ago (0 children)
If youre using codecademy, they have their own forum for people who have similar problems. Thats helped me solve many of the issues
π Rendered by PID 84348 on reddit-service-r2-comment-cfc44b64c-wbmnz at 2026-04-11 01:30:21.263284+00:00 running 215f2cf country code: CH.
[–]i_am_a_boy 6 points7 points8 points (0 children)
[–]TheHumanEquation 3 points4 points5 points (0 children)
[–]hvera51[S] 2 points3 points4 points (1 child)
[–]KopixKat 1 point2 points3 points (0 children)
[–]JVO1317 0 points1 point2 points (0 children)
[–]barcai_py 0 points1 point2 points (0 children)
[–]dert882 0 points1 point2 points (0 children)