Lesson 3 of 34
Data Types: సంఖ్యలు, టెక్స్ట్ మరియు True/False
8 min 20 XP
Python లో ప్రతి విలువకు ఒక type ఉంటుంది: పూర్ణ సంఖ్యలు int, దశాంశాలు float, టెక్స్ట్ str, True/False bool. type() ఆ type ఏమిటో చెబుతుంది.
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.జాగ్రత్త: "10" టెక్స్ట్ (string), 10 సంఖ్య. రెండు strings ను కలిపితే అవి జతకలుస్తాయి. లెక్కించడానికి int() తో సంఖ్యలుగా మార్చండి.
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.int("5") → 5, float("2.5") → 2.5, str(10) → "10". దీన్ని type conversion అంటారు.