3 ms·
Beginner means never wrote a program before (or maybe one in a computer class taught by a teacher with no computer science background and thus suspect ability t
by bluGill 6y ago
Beginner means never wrote a program before (or maybe one in a computer class taught by a teacher with no computer science background and thus suspect ability to program). I can't imagine a beginner getting into that problem because they can't handle programs complex enough to get there.
Now the next semester... They better be moving on to bigger things where that can happen. However they have moved beyond beginner.
- albntomat0 6y agoI could see an intro python student running into this issue with something like the following. I think we have different views on how far a beginner class would go, but I think doing basic functions and comparisons would be included. def foo(input_val): if some condition: return '5' else: return 6 print(foo(some_val) + 1)