Welcome back to Progra Kids Coding School! 🧑💻 In this video, our young coders are diving into the world of Python variables – the building blocks of every program!
Chapters:
0:00 - Intro to Variables
0:14 - Program using three variables
0:42 - Program using five variables
1:38 - Variables using Single Quotes
3:00 - Kid 3's Solution
4:00 - Teacher's Explanation
4:30 - Why Variables Are Important
5:00 - Outro
Program 1:
Declaring three variables
my_variable1 = "Hello"
my_variable2 = "How"
my_variable3 = "Are You"
Printing all three variables
print(my_variable1, my_variable2, my_variable3)
Explanation:
1. Three variables are declared and assigned values: "Hello", "How", and "Are You".
2. The print() function displays all three variables with spaces in between.
Output:
Hello How Are You
Program 2:
Declaring five variables
my_variable1 = "Hello"
my_variable2 = "How"
my_variable3 = "Are You"
my_variable4 = "I am"
my_variable5 = "fine"
Printing all five variables
print(my_variable1, my_variable2, my_variable3, my_variable4, my_variable5)
Explanation:
Assigns "Hello" to my_variable1.
Assigns "How" to my_variable2.
Assigns "Are You" to my_variable3.
Assigns "I am" to my_variable4.
Assigns "fine" to my_variable5.
The print() function displays all five variables, separated by spaces.
Expected Output:
Hello How Are You I am fine
Declaring a variable using single quotes
hello_text = 'Hello World'
Printing the variable
print(hello_text)
Explanation:
Assigns the string 'Hello World' to the variable hello_text using single quotes.
The print() function displays the value stored in hello_text.
Expected Output:
Hello World
Don't forget to like 👍 and subscribe for more awesome coding projects from Progra Kids Coding School!
Enrollment and Contact Information:
Interested in enrolling your child at Progra Kids Coding School? For more information about our programs, admissions, and upcoming sessions, please get in touch with us:
/ @progra-coding-school
www.instagram.com/progra.coding.school
📞 Phone: +91 9566266696
📧 Email: info@progra.in
🌐 Website: www.progra.in
Address:
Progra Kids Coding School,
128, 12th cross street,
Kamarajar Nagar,
Perungudi,
Chennai-96
Map : maps.app.goo.gl/CALbVj4SDbo4vxyB9
#education
#pythonforbeginners
#pythonprogramming
#codingforkids
#programming
#python
コメント