<commit_before>#!/usr/bin/env python

""" Assignment 1, Exercise 2, INF1340, Fall, 2015. Name that shape.

This module contains one function name_that_shape(). It prompts the user
to input the number of sides in a shape and outputs the name of the shape.

"""

__author__ = '<NAME>'
__email__ = "<EMAIL>"
__copyright__ = "2015 Susan Sim"
__license__ = "MIT License"


def name_that_shape():
    """
    For a given number of sides in a regular polygon, returns the shape name

    Inputs:

    Expected Outputs:

    Errors:

    """

    print("Error")


name_that_shape()<commit_msg>V 1.0<commit_after>#!/usr/bin/env python

""" Assignment 1, Exercise 2, INF1340, Fall, 2015. Name that shape.

This module contains one function name_that_shape(). It prompts the user
to input the number of sides in a shape and outputs the name of the shape.

"""

__author__ = '<NAME>'
__email__ = "<EMAIL>"
__copyright__ = "2015 Susan Sim"
__license__ = "MIT License"


def name_that_shape():
    """
    For a given number of sides in a regular polygon, returns the shape name

    Inputs:

    Expected Outputs:

    Errors:

    """

    print("Error")


name_that_shape = raw_input("How many sides? ")
name_that_shape = int(name_that_shape)

if (name_that_shape == 3):
    print("triangle")
elif (name_that_shape == 4):
    print("quadrilateral")
elif (name_that_shape == 5):
    print("pentagon")
elif (name_that_shape == 6):
    print("hexagon")
elif (name_that_shape == 7):
    print("heptagon")
elif (name_that_shape == 8):
    print("octagon")
elif (name_that_shape == 9):
    print("nonagon")
elif (name_that_shape == 10):
    print("decagon")
else:
    print("Error")







{'fraction_non_alphanumeric': 0.12141148325358851, 'fraction_numerical': 0.02332535885167464, 'mean_word_length': 3.793696275071633, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '169586', 'n_tokens_mistral': 599, 'n_tokens_neox': 533, 'n_words': 181}