Jul-04-2019, 11:59 AM
This drives me nuts to see in python
As it should be
Quote:print(self.name.title() + " " + "is an " + self.cuisine.title()+ " " + "restaurant")
As it should be
print(f'{self.name.title()} is an {self.cuisine.title()} restaurant')or at the very worst if they dont have python3.6+
print('{} is an {} restaurant'.format(self.name.title(), self.cuisine.title()))
Recommended Tutorials: