Python variables and data types you should know as a beginner ❎

preview_player
Показать описание
#Python #variables #type

(00:00:00) What are variables?
(00:01:15) string concatenation
(00:02:23) separate arguments
(00:03:20) f-strings
(00:04:04) 4 basic data types
(00:04:16) integers
(00:05:51) floats
(00:07:21) strings
(00:08:45) booleans
(00:11:26) tips & tricks

Python tutorial for beginners
Python variables and data types
Рекомендации по теме
Комментарии
Автор

# variable = a reusable container for storing a value
# a variable behaves as if it were the value it contains

# INTEGER
age = 21
players = 2
quantity = 5

print(f"You are {age} years old")
print(f"There are {players} players online")
print(f"You would like to buy {quantity} items")

# FLOAT
gpa = 3.2
distance = 2.5
price = 10.99

print(f"Your gpa is {gpa}")
print(f"You ran {distance}Km")
print(f"The price is ${price}")

# STRING
name = "Bro"
food = "pizza"

print(f"Hello {name}")
print(f"You like {food}")
print(f"Your email is: {email}")

# BOOLEAN
online = True
for_sale = False
running = False

print(f"Are you online?: {online}")
print(f"Is the item for sale?: {for_sale}")
print(f"Game running: {running}")

BroCodez
Автор

name = "Tim"
age = 16
score = 97.5
fail = False

print (f" My name is {name}.")
print (f" I am {age} years old.")
print (f" I scored {score} marks in my math test!")
print (f" Did I fail my math test?: {fail}")

OUTPUT:

My name is Tim.
I am 16 years old.
I scored 97.5 marks in my math test!
Did I fail my math test?: False

Thanks Bro Code for the AWESOME Tutorials! It's really helping!

VelixRoblox
Автор

This saved my life, i signed up for a certificate course but they have poor explanations abd you're mostly left on your own, this channel is the best!!!

risaverc
Автор

Got maybe 30 minutes left in the 12 hour python beginner course you have. This is near perfect timing.

TheSpecialistOps
Автор

I appreciate your training approach; it's clear, enjoyable, and straightforward. Thank you for keeping it simple and to the point.

joanneosborne
Автор

We all missed you bro, we are all glad you're back, you have taught me so much and if you want to take another break don't worry about it! :)

IronIsKing
Автор

Thanks CODE BRO! You're the best programmer teacher I have seen. Ypu explain things very simple and detail and precise too, with headings and also mentioned what we're doing, e.g: "Basic Datatypes". You're such a great teacher. Thank You!!

lookatrobot
Автор

Omg, you explained it very simply! It's really easy to understand. Thank you so much! I've always wanted to learn these.

NECISBISA
Автор

I've spent so much time to find a video that could help figure out what data types are, now thanks too you I know.

pcbgkhv
Автор

Bro, you're the greatest tutor of all times! Thanks a lot.

andrewv
Автор

Your channel is the best! Thank you so much for all the information you provide us with!

eliseanghel
Автор

yo this is by far the most understanding explained video i have found thank you bro fr fr

zoominwithzee
Автор

I have always believed that education is the ultimate code to crack. Thanks to Bro Code, I have been able to unlock some of the most complex programming languages and computer science concepts with ease. Your videos have been instrumental in helping me level up my skills. So, from the bottom of my heart (and stack), thank you for being the best educational channel out there. Keep up the good work, Bro Code! Your dedication to educating the masses about programming languages and computer science has been truly inspiring. I would love to connect with you and learn more about your journey and how you became one of the best educational channels out there. again, thank you for being a constant source of knowledge and inspiration for us all. You're the real MVP, Most Valuable Programmer

MohyDev
Автор

Your videos are a big help. Like no video on youtube teaches like you . Thanks

Nezuko-chan-j
Автор

You are a great teacher, thank you, new to python & you explained this beautifully :)

hf
Автор

Love your work and detailed explanations, PLEASE do a SQL video. Thanks alot

diykitreview
Автор

The tips & tricks helped me alot. Thank you so much, Bro Code. I love u.

ocireocire
Автор

I usually do not leave any commentaries, I even rarely subscribe to channels but bro this channel is just something else, you are the real Bro. We are even the same age, 21 y.o. Well, not anymore but deep down in my soul I'm still 21 and watching these videos I can finally understand coding.

joehaar
Автор

thanks you just made it clear for beginners to understand, i just subscribed, keep making this videos bro

lickguitars
Автор

I'm Brazilian and enjoying so much this wonderful course. Congratulations. Thanks for sharing.

Joel-cqhz