Error Message on Intro to Python: Strings and Choices, Number 7


#1

I'm practicing the ''Too long for Twitter'' exercise, making choice using "if", but after imputing the code, I got this error message "Oops, try again. You have to use the message2 variable!"
Here is the link to the exercise https://www.codecademy.com/en/courses/python-beginner-en-kSQwt/0/7#


#2

can you also copy paste your code to the forum?

The url will check for user and loads the users own code. (useful for me to access the exercise and debug your code)


#3

if len (message_1) < 140 or len (message_1) == 140:
print (message_1)
if len (message_2) < 140 or len (message_2) == 140:
print (message_2)
if len (message_3) < 140 or len (message_3) == 140:
print (message_3)


#4

the variable names do not have underscores in them? And it seem unwise to rename them given that might give problems with validition


#5

Wow, I got that. Thanks


#6

problem resolved and you understand everything?


#7

Yes, resolved and understood. Thanks


#8