Python Variables and Data Types Explained for Beginners (int, float, str, bool)
Ravindra Bagale's Tip — Chala mitrano
Every number in a report, every customer name and every yes/no flag is stored in a variable. Today we learn how Python stores values and how to check their type. This is the base of pandas columns.
Ravindra Bagale's Tip – चला मित्रांनो
Report मधला प्रत्येक आकडा, प्रत्येक customer चं नाव आणि प्रत्येक हो/नाही flag variable मध्ये ठेवलेला असतो. आज Python value कशी ठेवतो आणि तिचा type कसा तपासायचा ते शिकू. हाच pandas columns चा पाया आहे.
Ravindra Bagale's Tip – चलो दोस्तों
Report का हर आँकड़ा, हर customer का नाम और हर हाँ/ना flag variable में रखा होता है. आज सीखेंगे Python value कैसे रखता है और उसका type कैसे check करें. यही pandas columns की नींव है.
What you will learn in this chapter
- What a variable is and how to name it
- The four basic types: int, float, str and bool
- How to check a type with type()
- How to convert between types
- Basic maths operators
- Why None means "no value"
Practice data
All names, shops, banks, hospitals and amounts in this chapter are made up for learning. They are not real people or real company numbers.