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.
#Same drill as last time, define the funcdefdivide(intA,intB):#Shoutout to aproftr, I've been using python for some time and just learned#this clean way to print multiple lines!returnprint("{0}\n{1}".format((intA//intB), (intA/intB)));# Main function, is good practice to make in case of building projects :Ddefmain():divide(a,b);# You could use this too in case of severe lazyness :V#divmod(a, b);if__name__=='__main__':a=int(input())b=int(input())main();
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Python: Division
You are viewing a single comment's thread. Return to all comments →