Hi,
I am trying to print a dictionary but some values are empty and those who are empty, in stead of printing ‘None’ I do not want it to print anything.
This is what I wrote, but it still prints ‘None’, could someone help me please?
for randoms in random['drinks']:
print(randoms['strDrink'])
print(randoms['strAlcoholic'])
print('GLASS: ', randoms['strGlass'])
for x in range(1, 15):
y = randoms['strIngredient{}'.format(x)]
if y == 'None':
pass
else:
print(y)