Test yourself on Data Types with exam style questions, marked instantly.
Flashcards that come back just before you would forget them.
A revision plan that remembers what you know and shows what to do next.
See which topics you have nailed and which need another look.
Quiz yourself on Data TypesGet your flashcardsBuild my revision planTrack my progressDeep Dive: Type Casting
Converting between types (Python syntax):
int("42")→ 42 (string to integer)str(42)→ "42" (integer to string)float("3.14")→ 3.14 (string to real)int(3.9)→ 3 (real to integer, truncates)
Why cast? You can't add "5" + 3 (string + integer). You need: int("5") + 3 = 8
Make this stick
Signing in gives access to all PrepWise features.