# Start writing code here...
Classes & Objects: Review
class cartoons:
def __int__(self,Name,Views,Ratings,Income,Length,Genre,moneyperview ):
''' Create a new cartoons object with self,Views,Ratings,Income,Length'''
self.Name = Name
self.Views = Views
self.Ratings = Ratings
self.Income = Income
self.Length = Length
self.Genre = Genre
self.moneyperview = moneyperview
def Name (self):
print("The name of the cartoon is "+ self.Name)
def view(self):
print("This is cartoon has " + self.Views + " amount of views")
def rates(self):
print("The ratings on this cartoon are" + self.Ratings )
def Income(self):
print("This is cartoon has " + self.Income + " amount of money from the show")
def Length(self):
print("The Length of this cartoon is" + self.Length )
def Genre(self):
print("This cartoon is the " + self.Genre + " Genre ")
def moneyperview(self):
print("This is the amount money per views. ".format (self.Viwes / self.Ratings )
#Spongebob = cartoons("Spongebob", 50000000 , "74%" ,8000000000 , 248, "animation") did not work for some reason
showSpongebob = ("Spongebob", 50000000 , "74%" ,8000000000 , 248, "animation")
print()
showSpongebob.Name()
showSpongebob.view()
showSpongebob.rates()
showSpongebob.Income()
showSpongebob.Length()
showSpongebob.Genre()
showSpongebob.moneyperview()