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)
- [BUG] newlines are gone from quiz answers HOT 3
- [BUG] variable not defined in level 6 HOT 1
- [BUG] Printing a list in level 3 is possible by adding a list to a list HOT 1
- Write a small article for Wiki kids about Hedy
- [CONTENT] Create translators newsletter
- [UI, BUG] Chinese is only partly shown in language chooser
- [CONTENT] Check for constant use of = or is
- [LANGUAGE idea] Introduce Elif in level 12? HOT 2
- [UI idea] Color new keyword tabs
- [BUG] Support Bulgarian quotes
- [BUG] Hand in right away gives error message
- [BUG] Code in quiz level 14, question 8 is incorrect
- [BUG] Programs on the view page are sometimes loaded from session storage
- [BUG] Babel extract commands fail
- Build interface for front-end code editor
- Unknown foo.txt file
- [CONTENT] small mistakes Marleen should fix HOT 1
- [CONTENT?] Introductory code in level 15 hangs HOT 6
- [BUG] Filtering students programs returns My Programs Page HOT 2
- [UI idea] Don't show every adventure in the Explore Programs filter HOT 3
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.