out of course data about python
out of course data about python
Mutable /
Data Type Definition Exact Usage Example
Immutable
int ❌ Immutable Whole numbers without decimals Counting, age, scores → age = 25
bool ❌ Immutable Logical value: True or False Conditions, flags → is_valid = True
#############)(#############
✅ Basic Python Functions & Methods for Beginners
📛 Name 💡 What It Does 🧱 Used With 🧪 Example Usage
input() Takes user input All types name = input("Enter your name: ")
type() Shows the data type All types type(5) → <class 'int'>
zip() Combines multiple lists zip([1,2], ['a','b']) → [(1, 'a'), (2, 'b')]