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.
Because the type of the arguements passed are of type "String". You can check by using the type() function so it expects to return a string value only. If you return it in the int form, you will get an error for it. I hope this helps.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Time Delta
You are viewing a single comment's thread. Return to all comments →
Because the type of the arguements passed are of type "String". You can check by using the type() function so it expects to return a string value only. If you return it in the int form, you will get an error for it. I hope this helps.