Тёмный

Chapter 2| Python Variables & Data Types-Python Tutorial for Beginners (With Notes) 

TelcoGuru
Подписаться 2,4 тыс.
Просмотров 1,5 тыс.
50% 1

#Python #variables #type
Why learn Python?
Programmers love Python because of how fast and easy it is to use. Python cuts development time in half with its simple to read syntax and easy compilation feature. Debugging your programs is a breeze in Python with its built in debugger. Using Python makes Programmers more productive and their programs ultimately better.
Python has evolved as the most preferred Language for Data Analytics and the increasing search trends on python also indicates that Python is the next "Big Thing" and a must for Professionals in the Data Analytics domain.
What are variables?
4 basic data types
integers
floats
strings
booleans
tips & tricks
In this lecture we are discussing about DataTypes in Python:
-- why it is important?
-- how to use it ?
Python has several built-in data types. Here are some of the most common ones:
i) NoneType: This is a special data type that represents the absence of a value. It is similar to null in other languages.
ii) Numbers: These can be integers, floating-point numbers, or complex numbers.
iii) Booleans: These are values that represent True or False.
iv) Lists: These are ordered collections of objects, enclosed in square brackets.
v) Tuples: These are similar to lists, but are immutable (i.e., their contents cannot be changed), and are enclosed in parentheses.
vi) Sets: These are unordered collections of unique elements, enclosed in curly braces.
vii) Strings: These are sequences of characters, enclosed in single or double quotes.
viii) Ranges: These are immutable sequences of numbers, and are commonly used to iterate over a sequence of numbers in a for loop.
ix) Dictionaries: These are collections of key-value pairs, enclosed in curly braces.
Note:In addition to these built-in data types, Python also allows you to define your own custom data types using classes.
i)None Type
a=None
type(a)
ii)Numbers
int: if you want to assign a integer value to a variable
a=5
type(a)
float: if you want to assign a float value to a variable
num =2.5
type(num)
complex: if you want to assign a complex value to a variable
num =2+9j
type(num)
type conversion: if you want to convert one data type to another data type
a=5.6
b=int(a)
type(b) # output : int
k=float(b)
type(k) # output : float
c=complex(4,5)
type(c) # output : complex
iii)boolean: if you want to assign a variable with a boolean value
a= True
type(a) # output : bool
bool=3 less then5
True
type(bool)
e
vii) String: if you want to assign sequence of characters to a variable
-- In Python, a string is a sequence of characters enclosed in single or double quotes.
Strings are immutable, which means that they cannot be modified once they are created.
str = "hello"
type(str) # output : str
we are not talk about char data type in python
st='a' # every character is a string in python

Опубликовано:

 

13 сен 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 71   
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Please Support my effort by Subscribing MY Channel. Thanks!!
@NoahJones-hl8hu
@NoahJones-hl8hu 10 месяцев назад
Done Sir !!
@nehabansal7031
@nehabansal7031 10 месяцев назад
Done Sir!!
@Jenny45694
@Jenny45694 10 месяцев назад
Done Sir !!
@Rashmi12445
@Rashmi12445 10 месяцев назад
done Sir !!
@shambhavidayal3215
@shambhavidayal3215 10 месяцев назад
Bahut khoob
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@user-sm2ju2qk3j
@user-sm2ju2qk3j 10 месяцев назад
Lajawab
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@sarasvativadekar8492
@sarasvativadekar8492 10 месяцев назад
Osmmm
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@Uriy28
@Uriy28 10 месяцев назад
kya tutorial h nice
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@khandakarkamrulislam7906
@khandakarkamrulislam7906 10 месяцев назад
Mind blowing hai
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@rahulvidya8298
@rahulvidya8298 10 месяцев назад
Lajawab🥰
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@user-cs7ty2sp5u
@user-cs7ty2sp5u 10 месяцев назад
Nice
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@ashiakoccher7423
@ashiakoccher7423 10 месяцев назад
great
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@vijaygoyal5121
@vijaygoyal5121 11 месяцев назад
Respected Gaurav Sir, I don't have words to comment. This video is like booster even for experienced, who wants to add python in their resume.
@5GGuru-tc4io
@5GGuru-tc4io 11 месяцев назад
Thanks Sir !!
@Jenny45694
@Jenny45694 10 месяцев назад
Agree with you !!
@myersdianna6884
@myersdianna6884 11 месяцев назад
The only course in which u dont feel bored even for a single minute...thankyou soo much Gaurav Sir for this osm course... ur literally saving some ppl out there...
@5GGuru-tc4io
@5GGuru-tc4io 11 месяцев назад
Thanks Sir !!
@Brie_Latahan
@Brie_Latahan 11 месяцев назад
🎉
@Jenny45694
@Jenny45694 10 месяцев назад
Agree with you !!
@komalvalimbe8067
@komalvalimbe8067 10 месяцев назад
Nice❤️❤️
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@sahilshah84
@sahilshah84 11 месяцев назад
I used to think coding is no lees than rocket science but You made coding really easy… very helpful!
@5GGuru-tc4io
@5GGuru-tc4io 11 месяцев назад
Thanks Sir !!
@Jenny45694
@Jenny45694 10 месяцев назад
Agree with you !!
@dewidis6465
@dewidis6465 10 месяцев назад
great job
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@NoahJones-hl8hu
@NoahJones-hl8hu 11 месяцев назад
Gaurav Sir ,Thank you so much for this course. You have literally helped me with coding throughout my 1st and 2nd year of college, because I couldn't understand anything in online classes, but with your videos, I was able to study and maintain a decent cg, along with learning extra and new helpful things. I cannot thank you enough, I really appreciate all the hard work you put into all of your videos, they are very thorough while still being to the point. Couldn't have asked for a better teacher.
@Jenny45694
@Jenny45694 10 месяцев назад
Agree with you !!
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot Dear !!
@7Pozitron7KriptoUzar7
@7Pozitron7KriptoUzar7 10 месяцев назад
Super
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@user-qj6dt3np8v
@user-qj6dt3np8v 11 месяцев назад
Hey Gaurav Sir, just wanted to say thank you for providing us with these amazing courses free of cost. Your courses are amazingly structured which are way better than the paid courses. Keep up the amazing work and best of luck❤
@5GGuru-tc4io
@5GGuru-tc4io 11 месяцев назад
Thanks Sir !!
@Jenny45694
@Jenny45694 10 месяцев назад
Agree with you !!
@AmmiJan90
@AmmiJan90 10 месяцев назад
Perfect
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@devkhosla5139
@devkhosla5139 10 месяцев назад
Super👏
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@Jenny45694
@Jenny45694 11 месяцев назад
Hi Gaurav Sir, Thank you for this course, I used to think coding is difficult (it still is) but when you teach it I can understand it very clearly and now I am able to use my own understanding of principles to code for the same answer in different ways and really apply what I have learned, this is how you grow as a coder to thinking in different ways. Thank you, now I really feel confident in my coding skills.
@5GGuru-tc4io
@5GGuru-tc4io 11 месяцев назад
Thanks Sir !!
@Brie_Latahan
@Brie_Latahan 11 месяцев назад
@Jenny45694
@Jenny45694 10 месяцев назад
Agree with you !!
@nehabansal7031
@nehabansal7031 10 месяцев назад
Very great video. Programming concepts can not be explained in more simplified way than this. Thanku for making this video and help us in my learning journey
@Jenny45694
@Jenny45694 10 месяцев назад
Agree with you !!
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot Dear !!
@arpitasinha6353
@arpitasinha6353 10 месяцев назад
make video on classes
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@kalpanamandalik6790
@kalpanamandalik6790 10 месяцев назад
i want to learn python
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@kamyapanwar6746
@kamyapanwar6746 11 месяцев назад
😊 very thankful to u.. Made my career journey easy
@5GGuru-tc4io
@5GGuru-tc4io 11 месяцев назад
Thanks Kamya
@Jenny45694
@Jenny45694 10 месяцев назад
Agree with you !!
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot Dear !!@@Jenny45694
@jagadeeshdontula7328
@jagadeeshdontula7328 3 месяца назад
Thanks for this coding classes also. Nice explanation
@user-dm6el9gt6w
@user-dm6el9gt6w 10 месяцев назад
Bahut khoob
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot Dear !!
@aamanisehgal7491
@aamanisehgal7491 10 месяцев назад
great
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@vershaphadanis235
@vershaphadanis235 10 месяцев назад
Nice❤️❤️
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
@kdv2503
@kdv2503 10 месяцев назад
make video on classes
@5GGuru-tc4io
@5GGuru-tc4io 10 месяцев назад
Thanks a lot!!
Далее
We're on the brink of another world browser war
4:29
Gli occhiali da sole non mi hanno coperto! 😎
00:13
These Illusions Fool Almost Everyone
24:55
Просмотров 2,1 млн
My 2 Year Journey of Learning C, in 9 minutes
8:42
Просмотров 588 тыс.