We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
print('{} \n{} \n{}'.format((a+b,a-b,a*b))
as .format can take many parameters as you want by using the curly braces so its not that necessary to include anything to add inside the curly braces
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arithmetic Operators
You are viewing a single comment's thread. Return to all comments →
print('{} \n{} \n{}'.format((a+b,a-b,a*b)) as .format can take many parameters as you want by using the curly braces so its not that necessary to include anything to add inside the curly braces