Hi! I'm stuck with my python homework, any help is very appreciated. Thanks a lot!
Posted: Fri May 20, 2022 12:26 pm
Hi! I'm stuck with my python homework, any help is very appreciated. Thanks a lot!
Input This problem do not expect any input Output The output is expected as follows: Marley is a Labradore Retriever [Dog: Marley, Labradore Retriever, Dog: Brinkley, Golden Retriever, Dog: Fang, Boarhound, Dog: Lai Fu, Formosan] True False False Main Program (write the Dog class. The rest of the main program will be provided. In the online judge, the main problem will be automatically executed. You only need the Dog class.) Dog class: In [1] 1 main program: In [2): 1 a Dog('Marley', 'Labradore Retriever') 2 b - Dog('Brinkley', 'Golden Retriever') 3 C = Dog('Fane', 'Boarhound') 4 d = Dog('Lai Fu', 'Formosan') 5 6 15 = [a,b,c,dj 7 8 print(a) 9 print(15) 11 print(c -- Dog('Fang', 'Boarhound')) 12 print(c == Dog('Fang', 'German Shepherd')) 13 print(c -- Dog('Fung', 'Boarhound')) Marley is a Labradore Retriever [Dog: Marley, Labradore Retriever, Dog: Brinkley, Golden Retriever, Dog: Fang, Boarhound, Dog: Lai Fu, Formosan] True False False
Input This problem do not expect any input Output The output is expected as follows: Marley is a Labradore Retriever [Dog: Marley, Labradore Retriever, Dog: Brinkley, Golden Retriever, Dog: Fang, Boarhound, Dog: Lai Fu, Formosan] True False False Main Program (write the Dog class. The rest of the main program will be provided. In the online judge, the main problem will be automatically executed. You only need the Dog class.) Dog class: In [1] 1 main program: In [2): 1 a Dog('Marley', 'Labradore Retriever') 2 b - Dog('Brinkley', 'Golden Retriever') 3 C = Dog('Fane', 'Boarhound') 4 d = Dog('Lai Fu', 'Formosan') 5 6 15 = [a,b,c,dj 7 8 print(a) 9 print(15) 11 print(c -- Dog('Fang', 'Boarhound')) 12 print(c == Dog('Fang', 'German Shepherd')) 13 print(c -- Dog('Fung', 'Boarhound')) Marley is a Labradore Retriever [Dog: Marley, Labradore Retriever, Dog: Brinkley, Golden Retriever, Dog: Fang, Boarhound, Dog: Lai Fu, Formosan] True False False