0
I can’t find a way to check several variables at once. Look what I tried:
Example
nota1 = 10
nota2 = 20
nota3 = 30
for i in (1, 2, 3)
if nota{i} == 0
print('É zero')
In this case, there are many variables so it would be impossible to write one by one. Is there any solution?
You need to know if one of the variables is zero?
– Woss
Hi Lucas, could you give more information about what you need to do? I could not understand very well. Explain a little better your problem
– Pilati
Do you want to know if the note 0 is inserted? Make a list of the notes and then use the if conditional together with the in.
– Fabricio Paiva