Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
in python basics none of my code is working and i'm copying the instructor line for line.
i can understand what is supposed to be happening but everything is showing error.
notifications.py - saved
1.praise = "You are doing great" 2.praise = praise.upper() 3.number_of_characters = len(praise) 4.result = praise + "!" = number_of_characters 5.print(result)
this shows error and everything else i've coded w/ instructor, any idea what i could be doing wrong ?
Steven Parker225,730 Points
Are you putting those line numbers in your file? The numbers are not part of Python syntax. And even without the number, the 4th line seems to be a mix of two different assignment statements ("
result = praise + "!" = number_of_characters") — should that last "=" symbol be a "+" instead?
If that doesn't help you resolve it, then to allow us to accurately replicate your issue make a snapshot of your workspace and post the link to it here.
Providing a link the course page would also be helpful.