Quiz
Python Data Types Quiz
Free beginner quiz on Python data types: 15 questions on int, float, str, bool, None, lists, tuples, dictionaries and sets, with instant answers.
Showing 1–10 of 12
Quiz
Free beginner quiz on Python data types: 15 questions on int, float, str, bool, None, lists, tuples, dictionaries and sets, with instant answers.
Quiz
…on Python type conversion and input(): 15 questions on int(), float(), str(), bool() and reading numbers from the user.
Example
Python recognizes different data types automatically. Learn int, float, str and bool.
Challenge
…arrived as text. Predict it, find out why and fix it with int(), then add decimal readings with float().
Challenge
…and modify Investigate. Every value has a type: int for whole numbers, float for decimals, str for text and bool for True / False . Replace each ... with the type of that value, for example crew_type…
Challenge
…a number with +. Predict it, read the error, fix it with str(), then build a docking status line.
Challenge
…crash, find out what input() really returns, fix it with int(), then write a packing tool that reads two numbers.
Article Python Fundamentals
…Discover how to store numbers, text, and complex data structures effectively while following best practices for clean and maintainable code.
Challenge
…Investigate and modify Investigate. Find out what type float(temperature) gives and store it in converted_type . Then find out what bool(valve_open) gives, True or False , and store it in…
Challenge
…OK : 4 problems: downlink_rate_kbps: must be a number, got str retries: 12 is outside 0 to 10 safe_mode: must be true or false, got str log_levl: unknown setting True is also an int in Python, so rule…