Numbers, text & booleans
Integers are whole numbers, floats have decimal points, strings hold text, and booleans are True or False. type() tells you the type. Python uses types to decide which operations make sense.
हिन्दी में समझें
इंटीजर पूर्ण संख्या, फ्लोट दशमलव, स्ट्रिंग टेक्स्ट और बूलियन True या False होता है। type() से प्रकार जानें। प्रकार तय करता है कि मान पर कौन-सी क्रिया होगी।
अभ्यास: price को float रखें और learning प्रिंट करें ताकि True दिखे।
Hinglish mein samjhein
int poore numbers, float decimal numbers, str text aur bool True/False hota hai. type() se value ki type pata chalti hai. Har type par alag operations hote hain.
Practice: price float rakho aur learning print karo taaki True dikhe.
A small Python example
age = 12
price = 49.5
name = "Asha"
learning = True
print(type(price).__name__)The browser playground runs real Python with Pyodide. Use sample variables instead of interactive input(). Browser package support differs from desktop Python.
Try this example in the Python playground →Practise this idea
Keep price a float and print learning so True appears in the output.
Check answer & explanation
age = 12
price = 49.5
name = "Asha"
learning = True
print(type(price).__name__)
print(learning)49.5 remains a float. The boolean is True without quotes; printing learning makes its value visible.
Stuck in the course? Choose Check answer for either the challenge or quiz. Read the explanation and continue to the next lesson at your own pace.
Check your understanding
What type is 49.5?
Check the quiz answer
float
A number with a decimal point is a float.
References & corrections
Use the official Python documentation for full language rules. Read how these lessons are made and checked. Found a mistake? Report it to Excel Keys with this lesson URL and a reproducible example.