Перейти к содержимому

Python Variables for Beginners: Teach Python to Remember | Part 2

Beyond School

0:00 / 0:00

Python Variables for Beginners: Teach Python to Remember | Part 2

10 просмотров · 2 дня назад
Beyond School
25 подписчиков
10 просмотров · 2 дня назад
Learn Python variables for beginners with simple pictures and real examples. In this lesson you'll store names and numbers, use f-strings, and build a greeting bot, a bill splitter and a time converter. Nothing to install: practice in Google Colab, right in your browser. ▶ Python Full Course playlist:    • Python Full Course | Beyond School   ⬅ Previous: Part 1, Your First Program    • Python for Beginners: Your First Program i...   🧭 Start here, Part 0 (what you'll build + full syllabus):    • Python Intro: What Is Python? What You Can...   Chapters: 0:00 What you'll build 0:40 What is a Python variable? (3 pictures) 1:34 Create your first variable + Pause & Guess #1 3:19 Data types: text, numbers, True/False 4:58 f-strings explained + build a greeting bot 5:54 Build: bill splitter + Pause & Guess #2 8:16 Practice challenge: shopping total 9:38 Recap & next part What you'll learn: • What a Python variable is (sticky note, labeled jar, name tag) • name = "Asha": = means "store this in" • Changing variables: coins = coins + 3 • Data types: text (str), numbers (int, float), True/False (bool) • Fixing TypeError with int() • f-strings: print(f"Hi {name}!") and input() • Two Pause & Guess quizzes + a shopping-total challenge Practice code from this video: name = input("Your name? ") print(f"Hi {name}, welcome back!") bill = 1200 friends = 4 each = bill / friends print(f"Each friend pays {each}") minutes = 135 hours = minutes / 60 print(f"{minutes} minutes = {hours} hours") Practice in Google Colab: https://colab.research.google.com (nothing to install) 💬 What name did you store first? Type your f-string greeting in the comments! Beyond School: Ready to learn in a fun way! Anyone can learn. #Python #LearnPython #PythonVariables