FOR cycle | WHILE contition |
for identifier in list : ␣␣␣␣list-processing code [ else : ␣␣␣␣suite ] |
while condition ␣␣␣␣repeat if condition is true [ else: ␣␣␣␣suite ] |
IF-THEN-ELSE | TRY block |
if condition : ␣␣␣␣true suite [ elif condition: ␣␣␣␣else if true ] [ else : ␣␣␣␣else suite ] |
try: ␣␣␣␣possible runtime error except [type [as value]]: ␣␣␣␣error-recovery code [ else: ␣␣␣␣suite ] [ finally: ␣␣␣␣suite ] |
Function | Tuple | List | Dict. | String | Set |
---|---|---|---|---|---|
Init. | (),tuple() | [], list() | , dict() | "",'',str() | set() |
clear | — | — | ● | — | ● |
copy | — | — | ● | — | ● |
count | ● | ● | — | ● | — |
index | ● | ● | — | ● | — |
pop | — | ● | ● | — | ● |
remove | — | ● | — | — | ● |
update | — | — | ● | — | ● |