Module 'mystuff' has no attribute 'tangerine'


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

The file containes

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

The commands I type:

>> import mystuff
>> 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.