Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

Chuck galois271 at gmail.com
Fri Aug 10 15:23:37 EDT 2012


On Friday, August 10, 2012 2:05:36 PM UTC-5, Pedro Kroger wrote:
> On Aug 10, 2012, at 3:52 PM, Chuck <galois271 at gmail.com> wrote:
>>>> > if __name__ == '__main__':
>> > 
>> > quiz()
>> > 
>> > 
>>>> You need to instantiate your class:
>>>> foo = ElementsQuiz()
>> foo.quiz()
>>>>>> Pedro
>> -----
>> http://pedrokroger.net
>> http://musicforgeeksandnerds.com

That doesn't work either for some reason. I keep getting "NameError: name 'ElementsQuiz' is not defined"


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /