Commits

Pierre Carbonnelle committed c156bd4

illustrate how to interact with user

  • Participants
  • Parent commits 0e8f880
  • Tags 0.14.1

Comments (0)

Files changed (2)

File pyDatalog/IPython/Online_Datalog_tutorial.ipynb

      "cell_type": "markdown",
      "metadata": {},
      "source": [
+      "Online datalog tutorial"
+     ]
+    },
+    {
+     "cell_type": "markdown",
+     "metadata": {},
+     "source": [
       "pyDatalog is a powerful language with very few syntactic elements, mostly coming from Python : this makes it easy to learn !  In this tutorial, we'll review:\n",
       "\n",
       "* Variables and expressions\n",
      "cell_type": "code",
      "collapsed": false,
      "input": [
-      "# give me all the X and Y so that X is 'world' and Y is 'Hello ' followed by the first letter of X\n",
-      "print((X=='World') & (Y=='Hello ' + X[0]))"
+      "# give me all the X and Y so that X is a name and Y is 'Hello ' followed by the first letter of X\n",
+      "print((X==raw_input('Please enter your name : ')) & (Y=='Hello ' + X[0]))"
      ],
      "language": "python",
      "metadata": {},
      "outputs": [
       {
+       "name": "stdout",
+       "output_type": "stream",
+       "stream": "stdout",
+       "text": [
+        "Please enter your name : World\n"
+       ]
+      },
+      {
        "output_type": "stream",
        "stream": "stdout",
        "text": [

File pyDatalog/version.py

-__version__ = "0.14.0"
+__version__ = "0.14.1"