These are the answer placeholders that the ninja needs to replace to solve the task. In the diagram below notice the sections of code with thin rectangles around them. The ninja can see the code for the current task and a task description describing what they have to do. The console has a sub-window showing variables created in the console and their values, great for teaching how variables work. As a teaching aid one of the most useful features is the console where ninjas can test individual python statements. When the ninja (student) is running the course they have access to a full python IDE, including command completion and debugging. Effect of program – eg results in Minetest world.Partial match – when only start of string or end of string important.Exact match – when a string value or number value had to be exact.The types of tests I used to check for correct answers were Your formula: " + ninja_answer)Ĭorrect = eval(correct_answer, global_data, data)įailed("Incorrect answer for data " + str(data) + ". Guess = eval(ninja_answer, global_data, data)įailed("NameError: should only be in terms of variables " + ",".join(data.keys()) + " but includes other variables. I solved this problem by using the python eval() or exec() to test the value of functions or the effect of statements rather than compare the exact characters typed to the answer.įor example, here is how I used eval() to test for where the correct formula should be (x+y). For example, if the correct answer was “x+y” then I should also accept “y+x” or “y + x”. The tests needed to check for all possible correct answers. The tasks have to provide enough information for the ninja to understand what needed to be done, but not enough that the answer was trivial. Each answer placeholder has hints to help solve it, some text which needs to be replaced by the ninja and even the correct answer. A task has a task description to explain to the ninjas what to do, and a series of tests to determine when they had completed the task. Each task is a python program with sections left out to be completed by ninjas (answer placeholders). To create a course, I created a series of tasks. P圜harm Edu is cross platform, running on Linux, Mac and Windows.Īt CoderDojo I am mentoring ninjas in coding python so I thought I would try P圜harm Edu. It also enables teachers to create those courses. JetBrains is a cutting-edge software vendor specializing in the creation of intelligent development tools, including Toolbox App, IntelliJ IDEA, P圜harm, WebStorm, PhpStorm, ReSharper, Rider, CLion, Datalore, DataGrip, RubyMine, AppCode, GoLand, ReSharper C++, dotPeek, dotTrace, dotMemory, dotCover, YouTrack, TeamCity, Upsource, Hub, Kotlin, MPS, P圜harm Edu, IntelliJ IDEA Edu.P圜harm Edu is an Integrated Development Environment (IDE) for python which has the additional ability to run courses for learning python programming. #Pycharm educational activation code software However, most of them need license activation. #Pycharm educational activation code license įollowing a few steps, you can register these products. Test was sucessful in version 2019 series and 2020.1, on mac os, linux, windows. #Pycharm educational activation code series Hosts Add a few records to the hosts file. Mac os /private/etc/hosts It can be opened and edited using the nano command. #Pycharm educational activation code mac os
0 Comments
Leave a Reply. |