Python Tutor

VISUALIZE CODE AND GET LIVE HELP

Learn Python, Java, C, C++, JavaScript, and Ruby

Python Tutor (created by Philip Guo) helps people overcome a fundamental barrier to learning programming: understanding what happens as the computer runs each line of code.

Write code in your web browser, see it visualized step by step, and get live help from volunteers.

Related services: Java Tutor,  C Tutor,  C++ Tutor,  JavaScript Tutor,  Ruby Tutor

Over five million people in more than 180 countries have used Python Tutor to visualize over 100 million pieces of code, often as a supplement to textbooks, lectures, and online tutorials.

Visualize your code and get live help now

Here is a Python example:

Python 2.7

 1def listSum(numbers):
2  if not numbers:
3    return 0
4  else:
5    (f, rest) = numbers
6    return f + listSum(rest)
7 
8myList = (1, (2, (3, None)))
9total = listSum(myList)

Edit this code

 line that has just executed

 next line to execute

< Back Step 11 of 22 Forward >

Python Tutor by Philip Guo

Frames

Global frame

listSum

 

myList

 

listSum

numbers

 

f1
rest

 

listSum

numbers

 

f2
rest

 

Objects

function

listSum(numbers)

tuple

01
1

 

tuple

01
2

 

tuple

01
3None

Read the original research paper – Philip J. Guo. Online Python Tutor: Embeddable Web-Based Program Visualization for CS Education. SIGCSE 2013.

GET LIVE HELP from volunteers around the world

Hit the “Get live help!” button to allow anyone on the website to join your session. You can chat about your code and navigate visualizations together to receive free real-time tutoring. Watch this video demo.

Copyright © Philip Guo. All rights reserved.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值