1) Given a string s = "abcdefg", write a Python code to extract the substring "aceg" (skipping every other character). a) s[:] b) s[ : : 2] c) s[ 2: : ] d) s=[ :2: ] 2) What does the continue statement do in a loop in Python? a) It exits the loop b) It skips the current iteration of the loop and proceeds to the next iteration c) It terminates the program d) It reinitializes the loop counter

排行榜

視覺風格

選項

切換範本

恢復自動保存: ?