Comments (4)
Upon further consideration and examining of user data, this was a mistake, ask
needs to take a string too. Will be fixed in a new version of the grammars.
from hedy.
Here was my thinking, but I am also of course willing to learn from your experience!
- print is a real Python command that we want to build up in steps to the real thing
- ask is a toy command, that will be replaced with a true function call---input()---once kids now how to write those things
Hence I did not want to make the syntax of ask too rich.
But I see it leads to issues such as not being able to use variables in ask.
Still thinking about it, feedback welcome!
from hedy.
Can you work around the problem by telling students everything after ask
is given to an equivalent print
command? Then you can implement it using print
on everything s/(^.*ask)//
and process the result as you had planned.
In my observation, the kids were happy to learn the difference between using quotes and not, but then confused that it did not work the same way in ask
as in print
.
from hedy.
Data-driven language design, pretty cool!
from hedy.
Related Issues (20)
- remove /landing-page
- π "Start Learning" and "Start teaching" buttons on welcome page are not translated into German HOT 1
- πͺ² If developers mode is active, you can't see public adventures HOT 1
- πͺ² Debugger is not showing turtle output
- πͺ² Variable box is not shown when there's turtle output
- πͺ² Stop debug button keeps showing after finishing debugging
- πͺ² Remove assign button from grammars and transpiler HOT 1
- πͺ² If pressed randomly fails
- πͺ² Variable assignment does not work in if_pressed body HOT 1
- πͺ² For-list command stops when placed in an if_pressed statement HOT 1
- πͺ² Inconsistent handling of trailing spaces in assignments in levels 4-11
- ποΈ Add support for boolean values in the ask command
- πͺ² Add and remove accept text without quotes from level 12 onwards HOT 4
- ποΈ Add dynamic usage of keywords in grammars
- πͺ²Deleting student from class, doesn't update the table
- πͺ² The endpoint store_parsons_order fails, always
- π Small improvement on translation tutorial wiki page
- π Add content for boolean values
- πͺ² Printing a list gives an error
- πͺ² Navigating to non-existing parsons adventure gives an error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hedy.