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! While you're at it, check out some resources Treehouse students have shared here.

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

Python Python Basics Functions and Looping Functions

David Mandelkow
David Mandelkow
273 Points

python: can't open file 'notifcations.py': [Errno 2] No such file or directory

praise = "You are doing great" praise = praise.upper() number_of_characters = len(praise) result = praise + "!" * number_of_characters print(result)

keep getting the " python: can't open file 'notifcations.py': [Errno 2] No such file or directory " error even though i'm not in the python shell like how it is in the video the code looks to be the same as the video as well. I've googled this error and most say that you have to change the directory but that doesnt seem to be the case here. Im unsure of whats causing this error.

1 Answer

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

I notice that notifications is misspelled in the error. Is your file spelled correctly?

David Mandelkow
David Mandelkow
273 Points

oops I completely missed that. I'm sorry still new.

Craig Dennis
Craig Dennis
Treehouse Teacher

No need to apologise! I can only spot it because I made that mistake before ?