diff --git a/set2/slides/part2.md b/set2/slides/part2.md index 61fdfe0..084201f 100644 --- a/set2/slides/part2.md +++ b/set2/slides/part2.md @@ -129,28 +129,14 @@ if x > 5: print 'Done evaluating the x > 10 block' print 'Done evaluating the x > 5 block' ``` + @@@ ###Let's Develop It Write a program that uses if statements to determine what to do given some user input The code below is an example: -```python -health = 100 -print "A vicious warg is chasing you." -print "Options:" -print "1 - Hide in the cave." -print "2 - Climb a tree." -input_value = raw_input("Enter choice:") -if input_value == '1': - print 'You hide in a cave.' - print 'The warg finds you and injures your leg with its claws' - health = health - 10 -elif input_value == '2': - print 'You climb a tree.' - print 'The warg eventually looses interest and wanders off' -print "Game under construction. Come back later" -``` + Note: Let's develop it: 15 minutes @@@