Python aninhado se
Se Dentro Se
Você pode ter if
instruções dentro
if
de instruções, isso é chamado de instruções aninhadas
if
.
Exemplo
x = 41
if x > 10:
print("Above ten,")
if x > 20:
print("and
also above 20!")
else:
print("but not
above 20.")