Module 'mystuff' has no attribute 'tangerine'

Hello!

The module mystuff works fine but variable ‘tangerine’ does not define.

The file mystuff.py containes

def apple():
    print('Я - ЯБЛОКО!')
tangerine = "Отражение мечты"

The commands I type:

>> import mystuff
>> mystuff.apple()
'Я - ЯБЛОКО'
>> print(mystuff.tangerine)

I get Error Module ‘mystuff’ has no attribute ‘tangerine’
I searched for the errors but did not find. Any ideas?

Is the line with tangerine indented? If so, remove the leading whitespace.

florian, The linr with tangerine is not indented.

A free service run by Zed A. Shaw for learncodethehardway.org.