Recent questions in Programming in Python

#1
949
views
1 answers
0 votes
Consider the following Python code:def count(child_dict, i):if i not in child_dict.keys():return 1ans $=1$for $j$ in child_dict[i]:ans $+=$ count (child_dict, j) ... $ )Which ONE of the following is the output of this code?$6$1$8$9$
#2
1.2k
views
2 answers
0 votes
Consider the following Python function:def $\operatorname{fun}(D, s 1, s 2)$ :if $\mathrm{s} 1<\mathrm{s} 2$ ... at indices $\mathrm{s} 1$ and $\mathrm{s} 2$, and leaves the remaining elements unchanged.
To see more, click for the full list of questions or popular tags.