"Python"의 두 판 사이의 차이
ph
								
												
				| 2번째 줄: | 2번째 줄: | ||
| {{c|is}} is identity testing, {{c|<nowiki>==</nowiki>}} is equality testing. what happens in your code would be emulated in the interpreter like this: | {{c|is}} is identity testing, {{c|<nowiki>==</nowiki>}} is equality testing. what happens in your code would be emulated in the interpreter like this: | ||
|   >>> a = 'pub' |   >>> a = 'pub' | ||
| − |   >>> b = ''.join(['p', 'u', 'b']) | + |   >>> b = <nowiki>''</nowiki>.join(['p', 'u', 'b']) | 
|   >>> a == b |   >>> a == b | ||
|   True |   True | ||