1. Tubelator AI
  2. >
  3. Videos
  4. >
  5. Education
  6. >
  7. 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

Available In Following Subtitles
English
Variant 1
Posted on:
Video by: The Builder
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!
tubelator logo

Instantly generate YouTube summary, transcript and subtitles!

chrome-icon Install Tubelator On Chrome

Video Summary & Chapters

No chapters for this video generated yet.

Video Transcript

0:00
hey guys today I'm going to teach you
0:02
the basics of python as fast as possible
0:05
there's a lot to cover so let's get
0:07
started but before I do I will ask you
0:09
to please like comment and subscribe
0:12
thank you
0:13
okay so in Python a variable is just a
0:16
name that can hold a value so what I can
0:18
do is I can assign x to the value of 10.
0:21
and if we Type X we can see that X has
0:23
the value of 10. perfect now keep in
0:25
mind in Python the equal sign does not
0:28
really mean equality it just means the
0:31
assignment operator so what happens is
0:33
when you say x is equal to 10 you're
0:35
assigning x to the value of 10. this can
0:38
kind of trip up people who are into math
0:40
but just so you know okay so here's the
0:42
thing in Python variables can be almost
0:44
anything you want them to be so for
0:46
example I can say Pi is equal to 3.14 I
0:50
can say that name is equal to
0:53
Alex and I can even assign let's say a
0:57
true or false value like this I can say
0:59
is true is equal to true and if I print
1:03
these out if I say Pi we get 3.14 back
1:07
if I type name I get Alex back and if I
1:10
say is true it is indeed true perfect
1:13
now if you're a math whiz you may want
1:15
to know that python also has complex
1:17
numbers so if you want you can use a
1:20
complex number like this you can type 2J
1:22
plus 2 and as you can see we have a real
1:26
portion of this number in an imagine
1:27
portion so overall python has a built-in
1:30
flowing Point numbers strings booleans
1:32
and complex numbers
1:33
okay so okay so what's better than
1:36
having a single variable and the answer
1:38
is having a list of variables so in
1:41
Python we can define a list of variables
1:42
like this we can say we can say x is
1:44
equal to one two three four five hit
1:48
enter and now we have X that has the
1:51
values one two three four and five if we
1:54
hit X we see that we have a list of five
1:58
elements perfect now how do we get a
2:01
single value out of this list so what we
2:04
can do is we get the value of this index
2:06
so if I want to get the first element I
shape-icon

Download extension to view full transcript.

chrome-icon Install Tubelator On Chrome

YouTube First AI Assistant

chrome-icon Install On Chrome

AI Art For This Video No image generated for this video yet but here is the example.

ai art
0:09
Prompt
spider man in aladdin style, bright colors, hyper quality, high detail, high resolution, --video --s 750 --v 6. 0 --ar 1:2
ai images

Explore more in Education