Arithmetic in Python V2 || Python Tutorial || Learn Python Programming

preview_player
Показать описание

And beware of division by 0!

To learn Python, start our Python Playlist HERE:

♦♦♦♦♦♦♦♦♦♦

We recommend:
Python Cookbook, Third edition from O’Reilly

The Mythical Man Month - Essays on Software Engineering & Project Management

Shop Amazon Used Textbooks - Save up to 90%

♦♦♦♦♦♦♦♦♦♦

Ways to support our channel:

► We also accept Bitcoin @ 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9

Thank you!

♦♦♦♦♦♦♦♦♦♦

Connect with us!

♦♦♦♦♦♦♦♦♦♦

Python instructor: Ulka Simone Mohanty
Written & Produced by Michael Harrison
FX by Andriy Kostyuk

♦♦♦♦♦♦♦♦♦♦
Рекомендации по теме
Комментарии
Автор

It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

Socratica
Автор

*Arithmetic in Python V2*

Hello, everyone!  We released another Python Tutorial today.  In this video we cover the details of arithmetic in Python V2.  We talk about what it means for for one number to be a *narrower* or *wider* type than another.  We also cover *integer division*, since it behaves a bit differently.

Arithmetic is more straightforward in Python V3, so we'll cover that in a separate video.

#LearnMore

Socratica
Автор

I wish they had videos like this for visual basic back in the day

tunneltrance
Автор

Calculators will collapse into itself when dividing by zero!

filipve
Автор

wow this the best classes ever, thanks and I'm already stuck here, can go nowhere lol

Defender
Автор

Is it possible to make video games with python? Or does it not support visuals?

AlchemistOfNirnroot
Автор

@Soratica maybe use the term Rations instead of Reals @2:43 as I do not believe that python can represent a Real number only an approximate thereof or its Rational equivalent.
thanks for the amazing content!

matthewgiem
Автор

I am watching in 2018. Now, by default division is "float", e.g. 16/5 = 3.2
this is in python 3.6.2, 2017

dilshodrahmatov
Автор

Why doesn't Python have small number types like bytes. Aren't those number types easier on the processor/memory when doing a lot of small number calculations under 255? I've made a habit of doing that in Java.

Barnardrab
Автор

why not use the shell that comes with instead of the "dos"window?

rubic
Автор

When it comes to the differences between number types in Python v2, my eyes are now wide open...

PunmasterSTP
Автор

This video published 6 years ago and question is, all this tutorial still valid to learn or this resources already got old enough to not to learn?

muhammadaliismonov
Автор

I have python 3.7.0 and when I type b = 3L I get a syntax error. Fully updated BTW.

AlchemistOfNirnroot
Автор

Every year from now until 2020! Well, for the next 6 months. :(

MPaulHolmesMPH
Автор

Your division example is wrong.
Python2.x rounds to the left, it does not produce the quotient.
-5/2 = -3 compared to 5/2 = 2. It is massively stupid....
Get around this by starting the code with "from __future__ import division"

joshua
Автор

Nothing special about dividing int by int, thats what most c++ based languages follow

sheikhabdullah
welcome to shbcf.ru