CHAPTER 4
Introducing Python for Algorithm Programming
71
Sometimes you need to interact with just one variable. Python supports
a number
of unary operators, those that work with just one variable, as shown in Table 4-3.
Computers can perform other sorts of math tasks because of the way in which the
processor works. It’s important to remember that computers store data as a series
of individual bits. Python lets you access these individual bits by using bitwise
operators, as shown in Table 4-4.
Do'stlaringiz bilan baham: