The two setups using print(i, j)
and print(i)
return the same result. Are there cases when one
should be used over the other or is it correct to use them interchangeably?
desc = {'city': 'Monowi', 'state': 'Nebraska', 'county':'Boyd', 'pop': 1}
for i, j in desc.items():
print(i, j)
for i in desc.items():
print(i)
for i, j in desc.items():
print(i, j)[1]
for i in desc.items():
print(i)[1]