Vinay Garg Assistant Professor

Blog

Python

29 lessons, in order — start at lesson 1 and work down.

Python

Lesson 7: All the arithmetic operators

Seven operators do all the arithmetic in Python: add, subtract, multiply, divide, floor divide, remainder and power. One short program shows each one, plus the…

2 min read

Python

Lesson 10: Bitwise operators

Bitwise operators work on the individual bits of a number, not on the number as a whole. Six of them — and, or, xor, not, shift left and shift right — with 5 and 3…

2 min read