LearnPy Hub
← All topics
Topic Practice · Basics

Data Types & Casting problems

50 problems: 22 Easy, 18 Medium, 10 Hard.

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