Python Tutorial for Beginners 4 - Python Variables and Types

preview_player
Показать описание
In this Python Tutorial for Beginners Video I am going to show How to use Python Variables and Types. I will show How to declare variable, How to use Variable, How to Type cast variables In Python.
So what is a Variable ? A variable is a named place in the memory where a we can store data and later retrieve the data using the variable “name”. we get to choose the names of the variables. Also we can change the contents of a variable in a later statement.

As we discussed Python Introduction Video, that Python is completely object oriented and not "statically typed" i.e. Python is dynamically typed language. So we do not need to declare
variables before using them . In addition we don't need to declare the variable type type. Every variable in Python is an object.

Python Variable Name Rules
Variable Must start with a letter or underscore _
Variable Must consist of letters and numbers and underscores
Variable are Case Sensitive
Good: name age tom25 _max
Bad: 45name #name age.22
Different: name Name NAME

Reserved Words
It is not allowed to use reserved words as variable names / identifiers
and del for is raise
assert elif from lambda return
break else global not try
class except if or while
continue exec import pass yield
def finally in print

#PythonTutorialforBeginners #ProgrammingKnowledge #LearnPython #PythonCourse
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Sir u teach really good. Please post more videos so that we can learn full of python 😊

fairyqueen
Автор

sir please continue posting as early as possible . I am really interested in it and waiting eagerly .

pradeephatekar
Автор

sir your teaching is very clear and understaing thank you sir!!

Moniska
Автор

Interesting showing the difference with C language!

filibertobiolcatirinaldi
Автор

I am really interested in it and waiting eagerly....

ultronbyte
Автор

Sir also make some projects in python please

VishalGupta_
Автор

video explanation is superb and gaining the knowledge ..can u make the video on few of the topics like how to connect the db like postgresql from python, getting the data based on list stored in python and need to pass the values from the data frame to query and retrive the data from postgresql db. If u can help me with my query?

saisaranv
Автор

sir i need your help i add the git bash terminal in vs code but it still open power shell terminal why? and how am add git bash please need your help

musharafullah
Автор

Here the any links of courses you were given is not working may you give me a python course link..

kishanvekariya
Автор

2e3 is giving 2000.0... which means it is actually 2 followed by 3 zeroes and not 2 to the power 3....this is in python 2.7.16

saatwiiksrivastava
Автор

also many questions in my mind...can i share my questions with u? which will help to create many videos on that topics.

saisaranv
Автор

7:16 Hi, 10e10 will not give the correct answer as 10**10. Please check. I think 10e10 is not 10 to the power of 10. I don't think 10e10 and 10**10 both are same.

HarshaMaddur
Автор

I don't understand how the myNum variable becomes the float value

Man-dxtw
Автор

why type (My Num) will come out class ‘float'?

jinnyong
Автор

Actually u said that declared variables can't be used, As Python shows syntax error, but when tried it

Some variables like int, input, print etc., doesn't show syntax error and it even works like a variable why?

sabarishbabug
Автор

'float' object is not callable

elonmusk
Автор

The information you present is great; the incorrect pronunciation for USA English speakers makes it hard to follow. For example, the way you say 'variable' does not match with the standard USA convention. I understand English is not your primary language, so I try to follow along as best as I can. My primary language is English, and my secondary language is BASIC!

trollingdollars