1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # 5.4 for - in ´ÙÀ½¿¡´Â ¸®½ºÆ®³ª ¹®ÀÚ¿µµ ¿Ã ¼ö ÀÖ´Ù, 119ÂÊ # for i in [1, 2, 3, 4, 5]: # in µÚ¿¡ ¸®½ºÆ®¸¦ ³Ö°í ³¡¿¡ :À» ³ÖÀÚ print("i =", i) # i °ªÀ» Ãâ·ÂÇغ¸ÀÚ for i in "Hello": # ³¡¿¡ :ÀÌ ÀÖ¾î¾ß ÇÔ print("i =", i) # i °ªÀ» Ãâ·ÂÇغ¸ÀÚ for i in [1, 2, 3, 4, 5]: # 1¿¡¼ 5±îÁöÀÇ ¸®½ºÆ® print("9 *", i, "=", 9 * i) # 9*i °ªÀ» Ãâ·ÂÇغ¸ÀÚ | cs |