Python Numbers: Integers, Floats, and Arithmetic Operations [Python Tutorial for Beginners]

preview_player
Показать описание
In this video, I am going to continue talking about data types. Specifically, I cover Python numbers (integers and floats), as well as the arithmetic operations you can perform on these data types in Python 3.

So what will you learn in this video?

First, you will learn about integers (int) and floating-point numbers (float), and why we have various numerical data types to start with.

Second, you will learn about the arithmetic operations that you can perform on integers and floats (addition, multiplication, subtraction, and division). More importantly, I will talk in-depth about the type of the result of arithmetic operations, which in some cases, are more important than the result itself.

Third, I will extensively cover the difference between float and integer division in Python 3.

Finally, I will conclude by giving an example of some unpredictable bugs that could happen when you are working with floating-point numbers.

Overall, this video is a good foundational video for understanding how to work with numerical data in Python 3.

Google "afternerd learn Python" to check my massive guide for learning Python.

Resources:

Courses:

Where you can find me:

#python #pythonforbeginners #pythontutorial #afternerd
Рекомендации по теме
Комментарии
Автор

Some typos:
22:50 should be s = "5.123"
23:20 should be s2 = "2"
Thanks Kashif Ahmad for pointing these out!

Afternerd
Автор

Please keep making relevant content like this. It's refreshing to actually get solid and factual information like this! Thank you for your time and efforts in helping others to learn these concepts.I'm looking forward to learning more from you as you grow your channel, website and courses. Keep up the great work and please keep teaching and creating this amazing content. I have read your blog, watched a few of your videos and checked out your course, you are very good at relaying this complex information! I hope you are able to continue to grow this idea, if so I will continue to support you! New subscriber here!

gamenicity
Автор

Love your videos. I feel like i have a personal tutor

_kishot_
Автор

You’re the man, your teaching style is unmatched!! Thank you 🙏🏾

ShadaeMastersAstrology
Автор

Bro hope u doing good...Ur amazing voice always rush me to watch ur videos..🙋‍♂

Please keep uploading ur unique TECH videos. 👌👍👌
Thanku

RaviRaj-jerh
Автор

I really appreciate this video, just wanted to point out 2 little mistakes in your video that you should correct them, first of them occur after 22:50 when you are declaring string variable "s", you are not putting the quotation marks, so it's by default a float value instead of your intended string variable, the other one occurs after 23:20 when you are intending to declare a string variable "s2" but instead it has been mistakenly declared as an integer as you haven't put the quotation marks around the number, thanks

kashifahmad
Автор

Do you have a proggraming course on udemy?

Because your teaching is wonderful i want to learn more from you

kellyunweni