Giter VIP home page Giter VIP logo

pwp-capstones's People

Contributors

lynchung avatar

pwp-capstones's Issues

get_average_sentence_length function

The way you wrote the function seems fine, but another way to write it using just 1 for loop would be:

def get_average_sentence_length(text):
    no_questions = text.replace('?', '.')
    no_exclaim = no_questions.replace('!', '.')
    sentences = no_exclaim.split('.')
    sentence_lengths = []
    
    for sentence in sentences:
        words = sentence.split()
        sentence_lengths.append(len(words))

    average = sum(sentence_lengths) / len(sentence_lengths)
    return average

Murder Mystery Project PWP

Criteria 1: Valid Python Code

  • Score Level: 4/4

Criteria 2: Implementation of Project Requirements

  • Score Level: 4/4

  • Comment(s): Nice job implementing the requirements of the project!

Criteria 3: Software Architecture

  • Score Level: 4/4

  • Comment(s): Nice job separating your code in different functions and keeping it organized!

Criteria 4: Uses Python Language Features

  • Score Level: 4/4

  • Comment(s): Great use of python language features.

Criteria 5: Produces Accurate Output

  • Score Level: 3.5/4

  • Comment(s): Produces correct output. Find_text_similarity function seems to be throwing an error.

Overall Score: 19.5/20

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.