background preloader

Online Python Tutor - Visualize program execution

Online Python Tutor - Visualize program execution
Write your Python code here: x = [1, 2, 3] y = [4, 5, 6] z = y y = x x = z x = [1, 2, 3] # a different [1, 2, 3] list! x.append(4) y.append(5) z = [1, 2, 3, 4, 5] # a different list! x.append(6) y.append(7) y = "hello" def foo(lst): lst.append("hello") bar(lst) def bar(myLst): print(myLst) foo(x) foo(z) [Optional] Please answer these questions to support our research and to help improve this tool. Options: Execute code using , , , , , and . Here are some example Python code snippets to visualize: Basic: hello | happy | intro | filter | tokenize | insertion sort Math: factorial | fibonacci | memoized fibonacci | square root | gcd | towers of hanoi User Input: raw input Objects: OOP 1 | OOP 2 | OOP 3 | inheritance Linked Lists: LL 1 | LL 2 | LL sum Pointer Aliasing:aliasing 1 | aliasing 2 | aliasing 3 | aliasing 4aliasing 5 | aliasing 6 | aliasing 7 | aliasing 8 | sumList Higher-Order Functions: closure 1 | closure 2 | closure 3 | closure 4 | closure 5list map | summation | lambda param | student torture

http://www.pythontutor.com/visualize.html#

Related:  33 bitaSEO- KaXtone.com

DIY USB password generator » Code and Life Having done half a dozen V-USB tutorials I decided it’s time to whip up something cool. As USB keyboards were an area untouched, I decided to make a small USB HID keyboard device that types a password stored in EEPROM every time it’s attached. A new password can be generated just by tabbing CAPS LOCK a few times (4 times to start password regeneration and one tab for each password character generated, 10 is the default password length). 46 Simple Python Exercises This is version 0.45 of a collection of simple Python exercises constructed (but in many cases only found and collected) by Torbjörn Lager (torbjorn.lager@ling.gu.se). Most of them involve characters, words and phrases, rather than numbers, and are therefore suitable for students interested in language rather than math. Very simple exercises

The Python Tutorial Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, and may be freely distributed.

Unicode Character Finder The best way to get familiar with the Unicode Character Finder is to play with it - type in the boxes, push the buttons and see where they lead you. The paragraphs below describe the available features. The character preview area is intially blank. You can (1) click in the left-hand box; (2) type a character or copy & paste from another window; and (3) view the character properties on the right. Online Python exercises I've been thinking about online Python learners. There have been some cool examples of online code exercises, like Nathan's Javascript Lessons. These are great because they require absolutely no setup, and can run right on the web page that describes the concepts involved. But of course, it's easy to run Javascript in a browser. What are the options for doing something similar for Python?

Audio/Video Resources for Python There is a growing body of podcasts, screencasts and video presentations for the Python community. This page collects some of the best and provides a roadmap to the rest. If you would like to contribute materials, please see the our pointers for creating screencasts. ShowMeDo (screencasts)ShowMeDo is an aggregation of screencasts presented by a diverse set of instructors, all hosted at ShowMeDo. The site was started by Ian Ozsvald and Kyran Dale in December 2005 and covers more topics than just Python, although the catalog has a strong focus on Python.The site offers a wiki and forum, for Python source examples and follow-up with the instructors, as well as a reviewing/rating and screencast future request system.There are topic-specific RSS feeds including one for Python screencasts as well as a feed of Python-specific announcement postings to their blog.

Linux keyboard: Unicode hex codes composition (text symbols) You can use Unicode codes to enter any possible text symbols on Linux. Straight-forward from your keyboard. The only hard thing here is that you'll have to remember some hex codes of these symbols. But you'll read more on that below. Steps Python Exercises Why Turing/Java/Python in grade 11? The choice of language for grade 11 is something I assume most schools take fairly seriously. I've been teaching 13 years and every year I review my choice of languages and ask myself if they are the best choices. I assume I'm not alone in this. Every language has Pros and Cons.

RevitPythonShell: Randomization Click here to edit contents of this page. Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available. Append content without editing the whole page source. Check out how this page has evolved in the past. Subpixel layout - Lagom LCD test For this test your monitor must be in its native resolution. Each pixel on an LCD screen consists of three subpixels: red, green, and blue (RGB), that are sitting next to each other. Most operating systems since about 2003 can improve the quality of on-screen text by using these subpixels. However, this only works if the operating system knows how the subpixels are arranged. For the majority of the monitors, the arrangement is RGB (red on the left, green in the middle, and blue on the right). However, on an occasional monitor, it is the other way around (BGR).

GhPython For designers who want to use the same flexible language everywhere, GhPython is the Python interpreter component for Grasshopper that allows to execute dynamic scripts of any type. Unlike other scripting components, GhPython allows to use the rhinoscriptsyntax to start scripting without needing to be a programmer. Once on-board and with some practice, you can also get the most of external Python and .Net modules and libraries. This component is open-source, and works in Rhino 5. Online CSS3 Code Generator With a Simple Graphical Interface - EnjoyCSS Its handy and easy-to-use UI allows you to adjust rich graphical styles quickly and without coding. The main features: 2D and 3D transformsmultiple complex transitionsmultiple linear and radial gradientsmultiple box and text shadowscustom fonts (including google fonts)and much moreYou’ll be able to play with all EnjoyCSS parameters just like in photoshop or illustarator (with sliders, colorpickers and etc) combining all possible CSS3 style capabilities for the same element. Moreover you can include pseudo states (:hover, :active, :focus, :after, :before) and style them as well. All required CSS code will be automatically generated by EnjoyCSS. You can easily copy-pase all the code into your environment or get the code for each style aspect separately, e.g., code for each gradient, shadow or transform.

Related:  kurczakHøst 2013e1212