email_addresses = [
'[email protected]',
]
for email_address in email_addresses:
print email_address
#output=> [email protected]
email_addresses = [
'[email protected]'
]
for email_address in email_addresses:
print email_address
#output=> [email protected]
email_addresses = (
'[email protected]',
)
for email_address in email_addresses:
print email_address
#output=> [email protected]
email_addresses = (
'[email protected]'
)
for email_address in email_addresses:
print email_address
#output=>
t
e
s
t
@
g
m
a
i
l
.
c
o
m
It is output character by character, probably because it is regarded as a character string.
email_addresses = (
'[email protected]',
'[email protected]'
)
for email_address in email_addresses:
print email_address
#output=> [email protected]
[email protected]
When I changed what was in the state of 5 to 4, it was a bug, so I was curious and investigated.
It seems like this.
foo = "abc"
bar = ("abc")
foo == bar
#↑ True
Recommended Posts