Learn Python VARIABLES in 10 minutes! ❎

Published: 17 August 2024
on channel: Bro Code
59,222
1.5k

#python #pythontutorial #pythoncourse

Variable = A container for a value (string, integer, float, boolean)
A variable behaves as if it was the value it contains

Strings
first_name = "Bro"
food = "pizza"
email = "[email protected]"

Integers
age = 25
quantity = 3
num_of_students = 30

Float
price = 10.99
gpa = 3.2
distance = 5.5

Boolean
is_student = True
for_sale = False
is_online = True

print(f"Hello {first_name}")
print(f"You are {age} years old")
print(f"Your gpa is: {gpa}")

if is_student:
print("You are a student")
else:
print("You are NOT student")


Watch video Learn Python VARIABLES in 10 minutes! ❎ online, duration hours minute second in high quality that is uploaded to the channel Bro Code 17 August 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 59,222 times and liked it 1.5 thousand visitors.