id/email | |

password | |

forgot password | |

create account | |

Or use Mozilla Persona: | |

Nick's post on Why Persona is Great |

about | help | code help+videos | done | prefs |

**Python** > Logic-1 > date_fashion

prev | next | chance

You and your date are trying to get a table at a restaurant. The parameter "you" is the stylishness of your clothes, in the range 0..10, and "date" is the stylishness of your date's clothes. The result getting the table is encoded as an int value with 0=no, 1=maybe, 2=yes. If either of you is very stylish, 8 or more, then the result is 2 (yes). With the exception that if either of you has style of 2 or less, then the result is 0 (no). Otherwise the result is 1 (maybe).
date_fashion(5, 10) → 2 date_fashion(5, 2) → 0 date_fashion(5, 5) → 1 ...Save, Compile, Run prev | next | chance | CodingBat > Logic-1 |

Forget It! -- delete my code for this problem

Progress graphs, just for fun:

Your progress graph for this problem

Random user progress graph for this problem

Random Epic Progress Graph

106.0 Post-solution available

Copyright Nick Parlante 2006-11 - privacy