"Python"의 두 판 사이의 차이
ph
								
												
				| 1번째 줄: | 1번째 줄: | ||
| − | =={{c|is}} and {{c|==}}== | + | =={{c|is}} and {{c|<nowiki>==</nowiki>}}== | 
| − | {{c|is}} is identity testing, {{c|==}} 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 = ''.join(['p', 'u', 'b']) | ||
| 8번째 줄: | 8번째 줄: | ||
|   False |   False | ||
| [http://stackoverflow.com/a/1504742/766330] | [http://stackoverflow.com/a/1504742/766330] | ||
| − | |||
| − | |||
| ==Access index in {{c|for}} loop== | ==Access index in {{c|for}} loop== | ||