Skip to content

Instantly share code, notes, and snippets.

@joeletizia
Created July 31, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeletizia/1817faeb6c6fb4f5a2a9 to your computer and use it in GitHub Desktop.
Save joeletizia/1817faeb6c6fb4f5a2a9 to your computer and use it in GitHub Desktop.
Dakarai Homework 2

Dakarai Homework #2

  1. Write a function called stop_sign that prints out the question Which way do you want to turn? and then takes keyboard input from the user. If the input equals left print Turning left!. If the input equals right print Turning right!. If the input is anything other than the two previous options, print Crash!!!
  2. Write a function called spaces that takes a string as input. Return the number or spaces in the string as an integer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment