Given an integer, write a function to print it out in words (e.g. given 342, print "three-hundred forty-two"?
Given an integer, write a function to print it out in words (e.g. given 342, print "three-hundred forty-two"?
题目类型: 行为面试题
这是一道行为面试题,常见于澳洲IT公司面试中。
难度: easy
标签: interviewbit, ntt-data, company-specific
目标公司: NTT DATA
参考答案摘要
Below example Python function to print out an integer in words: def int_to_words(num): # Define the word lists for digits, tens, and multiples of 100 digits = ['', 'one', 'two', 'three', 'four', 'five...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。