Why the output of this code is 32 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Why the output of this code is 32

Byte = 1 For c in range(5): Byte*=2 Print(byte)

11th Feb 2019, 6:16 PM
H.code
1 Resposta
+ 10
It basically multiplies byte with 2 in each occuring loop which will happen 5 times Byte = 1 So Byte *2*2*2*2*2 Which is 32
11th Feb 2019, 6:18 PM
Frost
Frost - avatar