Teams for Education - Python files don't appear to run correctly?

Nick Frost 0 Reputation points
2025-02-23T11:10:08.0233333+00:00

Teams for Education is supposed to support Python files natively. This means that .py (and .ipynb) files can be opened/run from inside a Teams environment, such as through being set/marked using assignments.

Python files can indeed be open/run, but only if they don't include input. As virtually every program used to teach students involves input this appears to be a problem. Is there some kind of fix that can be used?

e. g. the (trivial) code below does not run successfully, ignoring asking for the first input (and not using the 2nd)image

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,584 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.