Python variables for beginners: in this Day 2 lesson of THE LOGIC LAYER Python course, you will learn what a variable is, how to create one, the naming rules, and the four basic data types (string, integer, float, boolean) with simple real-life examples. No previous programming experience needed. By the end of this video you will be able to: • Store information once and use it many times • Create and change variables in Python • Choose correct variable names (and avoid errors) • Check data types with the type() function • Build two small programs: a Student Profile and a Shopping Bill CHAPTERS 0:00 Introduction: why we need variables 0:59 Quick revision of Day 1 1:29 What is a variable? (box and label example) 2:43 How to create your first variable in Python 4:17 More variable examples and printing with commas 5:58 How to change the value of a variable 7:16 Python variable naming rules 9:06 Python data types: string, integer, float, boolean 11:10 Practical program 1: Student Profile 12:57 Practical program 2: Shopping Bill 14:17 Practice tasks (do these before Day 3) 15:43 Summary and what is coming in Day 3 CODE FROM THIS VIDEO name = "Ali" age = 20 city = "Lahore" marks = 85.5 print("My name is", name) print(type(age)) PRACTICE TASKS 1. Create variables for your name, age, city and favorite subject, then print full sentences. 2. Create temperature = 30, print it, change it to 35 and print again. 3. Make a shopping bill with three items and print the total. 4. Which names are valid? my name, 2marks, total_marks, price$ (write your answers in the comments) FULL PYTHON COURSE PLAYLIST: [ PREVIOUS LESSON (Day 1: Introduction to Python): [ NEXT LESSON (Day 3: Operators and User Input): coming soon Subscribe to THE LOGIC LAYER and turn on notifications so you do not miss Day 3. A new Python lesson every week. If this video helped you, please like it and share it with a friend who wants to learn programming. #Python #PythonForBeginners #LearnPython #Programming #LearnToCode #PythonCourse #TheLogicLayer











