- Tubelator AI
- >
- Videos
- >
- Education
- >
- Learn Python for Beginners in Less Than 1 Hour - Easy and Quick Tutorial
Learn Python for Beginners in Less Than 1 Hour - Easy and Quick Tutorial
Master the basics of Python quickly with this full course under 1 hour. Learn how to assign variables and understand the assignment operator in Python. Start coding with Python now!
Video Summary & Chapters
No chapters for this video generated yet.
Video Transcript
hey guys today I'm going to teach you
the basics of python as fast as possible
there's a lot to cover so let's get
started but before I do I will ask you
to please like comment and subscribe
thank you
okay so in Python a variable is just a
name that can hold a value so what I can
do is I can assign x to the value of 10.
and if we Type X we can see that X has
the value of 10. perfect now keep in
mind in Python the equal sign does not
really mean equality it just means the
assignment operator so what happens is
when you say x is equal to 10 you're
assigning x to the value of 10. this can
kind of trip up people who are into math
but just so you know okay so here's the
thing in Python variables can be almost
anything you want them to be so for
example I can say Pi is equal to 3.14 I
can say that name is equal to
Alex and I can even assign let's say a
true or false value like this I can say
is true is equal to true and if I print
these out if I say Pi we get 3.14 back
if I type name I get Alex back and if I
say is true it is indeed true perfect
now if you're a math whiz you may want
to know that python also has complex
numbers so if you want you can use a
complex number like this you can type 2J
plus 2 and as you can see we have a real
portion of this number in an imagine
portion so overall python has a built-in
flowing Point numbers strings booleans
and complex numbers
okay so okay so what's better than
having a single variable and the answer
is having a list of variables so in
Python we can define a list of variables
like this we can say we can say x is
equal to one two three four five hit
enter and now we have X that has the
values one two three four and five if we
hit X we see that we have a list of five
elements perfect now how do we get a
single value out of this list so what we
can do is we get the value of this index
so if I want to get the first element I