Python 3 Programming Tutorial: Variables

preview_player
Показать описание
In almost every single Python program you write, you will have variables. Variables act as placeholders for data. They can aid in short hand, as well as with logic, as variables can change, hence their name.

Variables help programs become much more dynamic, and allow a program to always reference a value in one spot, rather than the programmer needing to repeatedly type it out, and, worse, change it if they decide to use a different definition for it.

Variables can be called just about whatever you want. You wouldn't want them to conflict with function names, and they also cannot start with a number.

Welcome to another Python 3.3 basics tutorial video. In this video you are shown the basics regarding variables in Python 3.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

Great tutorials, i am learning Python 3 and finally found the perfect teacher.
Subscribed, good job.

mrhunterf
Автор

This is the most loosely typed stuff I have ever seen and it's amazing. Python is like that cool uncle that just lets you cut loose and do what you wanna do.

pritheebecareful
Автор

Thanks for helping me my brother learned from u and now made an app and is going to R.I.T this September and he started to teach me and told me to watch u if i want to learn more and its really helping i subscrubed thanks a ton!

melodylateer
Автор

You are a great teacher man! Finally found someone who actually helped me understand

rohailali
Автор

I'll always confuse with variables and vegetables

vinayreddy
Автор

At 2:30. I am not sure if I understand you correctly but you actually execute print('whoa') and store the result (which is None) in exampleVar. The next line does nothing. You did not put a function in that variable. To do that you would need this: exampleVar = print you could call it afterwards with exampleVar('whoa')

tobiasloose
Автор

Good tutorial but I'm curious as to why exampleVar that contains the print function is called even when it isn't called, just by being defined

Soulfyres
Автор

you are a very good teacher of python and I will enjoy learning further

RuhabDabeer
Автор

Hello sentdex,

Thank you so much for your videos, and for coming up with questions I do normally when learning programming. (For example x, y = (3, 5, 8) what happens ).
Love ya.

Take care,

MrSarky
Автор

Hello, m new to Python programming and these tutorials are helping me immensely, I have a doubt that why don't we use data types while declaring a variable??

radhikajain
Автор

Do you use PEP -8 style? I find it useful only when submitting code to libraries

dfrusdn
Автор

Hi !
when i giive the variable a function " print ("whoa") " and then call it again nothing happens... :(
Thanks for the help!
Btw BEST TUTORIAL EVER

somadityasinha
Автор

sir you have multiple websites regarding python 3. Which should be learnt first. please reply
and your videos are awesome sir

palashgupta
Автор

Also you can type it like this --> ExampleVar

helovespeepeepoopoo
Автор

How about:
CH = [32, 65, 66, 67, 68, 69, 70]
for g in CH:
print(g)

STEVEJOY
Автор

thank you. this page seems pretty helpful.

ashmitbindal
Автор

Python prints it fine the first time but won't print the variable again, it isn't saying there's an error, it just jumps on down to the next line and prints nothing.

troyadams
Автор

i have to say its so much less writing than c.
love it

dafff
Автор

i am having a single



how do we print a variable inside another print function which also includes some words? ?
for example..
a = 1
print ("the value of a is (a)")

#the a in the brackets is where i want to print the value of a.

please brother i need your help

anshbhilare
Автор

sir for print(exampleVar), print(x), print(y) you didn't put inverted comas, can you please explain me when inverted comas are required...

kavyasowlam