Code Monkey home page Code Monkey logo

bobbypython's Introduction

BobbyPython

Learning python challenge: make Bob talk

under supervision of BeCode AI Bootcamp and with some pair programming

Copied from the challenge files:

Bob answers 'Sure.' if you ask him a question.

He answers 'Whoa, chill out!' if you yell at him.

He says 'Fine. Be that way!' if you address him without actually saying anything.

He answers 'Whatever.' to anything else.

Instructions

Run the test file, and fix each of the errors in turn. When you get the first test to pass, go to the first pending or skipped test, and make that pass as well. When all of the tests are passing, feel free to submit.

Remember that passing code is just the first step. The goal is to work towards a solution that is as readable and expressive as you can make it.

Please make your solution as general as possible. Good code doesn't just pass the test suite, it works with any input that fits the specification.

Have fun!

Solution and workflow report

We (Maarten Vandaele and Maja Minnaert) each came up with a start of the solution and reviewed these together, after which we worked together on the mini- codebase we had on Maja's local repository. Using Discord screensharing, we could both see the code and we tried to come up with solutions based on the error and bug messages we received after running the tests, helped by the reading of the tests. We needed to put our heads together for makings sense of it and shared our knowledge where possible, so we could really think together on improving the code. Since the latest update, you can find our solution to this challenge in the bob.py file in this repository, along with the test as it was executed during working time. It was not edited, though we first had a class in our module bob and this didn't work well with the tests, so Maja tried first to let the imports atop the test module refer to the class, which she didn't really know how to and we decided it was better to mess with our own code to make it conform to what the tests seemd to be going for, a single function inside the file "bob.py". We did keep in mind to make the code general and not test-specific while doing this. Overall, we both contributed with solutions and logic through voice and chat conversation.

bobbypython's People

Contributors

nachtvlinder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.