Topic Practice · Basics
Data Types & Casting problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. What Type Is It?
4 test casesEasy✓2. Text to Numbers
4 test casesEasy✓3. Join as Text
4 test casesEasy✓4. Drop the Decimals
5 test casesEasy✓5. Round It
5 test casesEasy✓6. How Many Digits?
5 test casesEasy✓7. True or False?
4 test casesEasy✓8. Text vs Numbers
4 test casesEasy✓9. Integer and Decimal Parts
4 test casesEasy✓10. String to List of Characters
4 test casesEasy✓11. Is It Truthy?
4 test casesEasy✓12. Text Plus One
4 test casesEasy✓13. Add Two Decimals
4 test casesEasy✓14. Number as Text
4 test casesEasy✓15. Name the Type
5 test casesEasy✓16. bool() of a Number
4 test casesEasy✓17. Length of the Text
4 test casesEasy✓18. Words Into a List
4 test casesEasy✓19. Join Text and a Number
4 test casesEasy✓20. Decimal or Whole?
4 test casesEasy✓21. Only Digits?
4 test casesEasy✓22. Compare as Text, Compare as Numbers
4 test casesEasy✓23. Price with VAT
5 test casesMedium✓24. Is It a Whole Number?
5 test casesMedium✓25. Shopping Total
4 test casesMedium✓26. Two Kinds of Division
5 test casesMedium✓27. Celsius to Kelvin
5 test casesMedium✓28. Number or Text?
6 test casesMedium✓29. Character Codes
5 test casesMedium✓30. Whole and Fraction
5 test casesMedium✓31. Read a Number in Any Base
4 test casesMedium✓32. Three Representations
4 test casesMedium✓33. Floating Point Surprise
4 test casesMedium✓34. Next Letter
4 test casesMedium✓35. Read a Formatted Price
4 test casesMedium✓36. Sum the Digits as Text
4 test casesMedium✓37. Add Only the Numbers
4 test casesMedium✓38. Number Formats
4 test casesMedium✓39. Duration Text to Minutes
4 test casesMedium✓40. Count the Truthy Values
4 test casesMedium✓41. Binary Form
5 test casesHard✓42. Hex to Decimal
5 test casesHard✓43. Percentage
5 test casesHard✓44. Counting Trues
4 test casesHard✓45. Scientific Notation
5 test casesHard✓46. Sort Out Mixed Values
4 test casesHard✓47. Human-Readable File Size
4 test casesHard✓48. Convert Between Bases
5 test casesHard✓49. Text as Bytes
4 test casesHard✓50. Sort Values by Type
4 test casesHard
4 test casesEasy✓2. Text to Numbers
4 test casesEasy✓3. Join as Text
4 test casesEasy✓4. Drop the Decimals
5 test casesEasy✓5. Round It
5 test casesEasy✓6. How Many Digits?
5 test casesEasy✓7. True or False?
4 test casesEasy✓8. Text vs Numbers
4 test casesEasy✓9. Integer and Decimal Parts
4 test casesEasy✓10. String to List of Characters
4 test casesEasy✓11. Is It Truthy?
4 test casesEasy✓12. Text Plus One
4 test casesEasy✓13. Add Two Decimals
4 test casesEasy✓14. Number as Text
4 test casesEasy✓15. Name the Type
5 test casesEasy✓16. bool() of a Number
4 test casesEasy✓17. Length of the Text
4 test casesEasy✓18. Words Into a List
4 test casesEasy✓19. Join Text and a Number
4 test casesEasy✓20. Decimal or Whole?
4 test casesEasy✓21. Only Digits?
4 test casesEasy✓22. Compare as Text, Compare as Numbers
4 test casesEasy✓23. Price with VAT
5 test casesMedium✓24. Is It a Whole Number?
5 test casesMedium✓25. Shopping Total
4 test casesMedium✓26. Two Kinds of Division
5 test casesMedium✓27. Celsius to Kelvin
5 test casesMedium✓28. Number or Text?
6 test casesMedium✓29. Character Codes
5 test casesMedium✓30. Whole and Fraction
5 test casesMedium✓31. Read a Number in Any Base
4 test casesMedium✓32. Three Representations
4 test casesMedium✓33. Floating Point Surprise
4 test casesMedium✓34. Next Letter
4 test casesMedium✓35. Read a Formatted Price
4 test casesMedium✓36. Sum the Digits as Text
4 test casesMedium✓37. Add Only the Numbers
4 test casesMedium✓38. Number Formats
4 test casesMedium✓39. Duration Text to Minutes
4 test casesMedium✓40. Count the Truthy Values
4 test casesMedium✓41. Binary Form
5 test casesHard✓42. Hex to Decimal
5 test casesHard✓43. Percentage
5 test casesHard✓44. Counting Trues
4 test casesHard✓45. Scientific Notation
5 test casesHard✓46. Sort Out Mixed Values
4 test casesHard✓47. Human-Readable File Size
4 test casesHard✓48. Convert Between Bases
5 test casesHard✓49. Text as Bytes
4 test casesHard✓50. Sort Values by Type
4 test casesHard