Practice Exercise #3: Reverse engineering with inputs and outputs

Activity Summary

When you are learning python for the very first time, it can be extremely helpful to reverse engineer / remix others work. However, to effectively do so, you need to know how to read through their code in a way that benefits your own goals.

Video

Activity Steps

Task: Write a Python program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the year that they were born. 

  1. Create a new trinket
  2. Adapt the broken trinket below and ensure that all of the features work (hint: review the comments).

Example Code

Resources

None for this week, but drop us a line if there’s anything you’d find useful.

Skip to toolbar