Codecademy code does not work


My code works fine. Codecademy's original code does not work.

This is the error message for Codecademy code before I have made any modifications:

Traceback (most recent call last):
File "python", line 5, in
TypeError: range() takes exactly 1 argument (2 given)

I expect Codecademy's supplied code to work.

Replace this line with your code.


Can you post your code?
Do not forget to format it well!
Formatting the code:


There is no code for me to post. I have not written any!


Then How come you're getting that error?
Read the theory.
Read the instructions and try to follow them


Yes. That is my question!


You must have started with some code?
Can you put that here ?


Repeat I did not enter any code.

I am compiling Codeacadenys code!


Repeat without code there would be no error.
If you read the instruction, There is a way to go! :slight_smile:

Reasons of errors

  1. Syntax, logical error
  2. You're not following instructions and writing no code/ different code as intended by Codecademy!


Please stop with the insults, please go away.

Repeat I have not written any code.


I apologize , I didn't mean to insult you!
I was just pointing you out what probable mistakes you could have made.
I apologize again!


please post the code that is giving you the error so we can help correct any problems


Nobody can help you if you do not post the code. Everyone is trying to help, just let them.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.