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

Ranglista

Vizuális stílus

Beállítások

Kapcsoló sablon

Automatikus mentés visszaállítása :?