Commit eafaca34 authored by Romain Casati's avatar Romain Casati
Browse files

Adding PythonTutor example.

parent 022d4770
Pipeline #410455 passed with stages
in 4 minutes and 4 seconds
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"from tutor import tutor\n\ndef syracuse(N):\n u, s = N, [N]\n while u != 1 :\n if u%2 == 0:\n u = u//2\n else:\n u = 3*u + 1\n s.append(u)\n return s\n\nvol = syracuse(15)\n\ntutor()","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"},"language_info":{"name":"python","codemirror_mode":"python"}},"nbformat":4,"nbformat_minor":2}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment