<commit_before>"""
calculatepi.py
Author: <NAME>

This was an experiment for Math Modeling and Fractions

"""
import math
lista = []
listb = []
a = 0
b = 0
d = int(input("Largest Denominator?"))
for x in range(0,d):
    a += 1
    b = 1
    c = a/b
    if x == 0:
        lista.append(c)
        for y in range(0,d):
            a = a
            b += 1
            c = a/b
            lista.append(c)
    if x == 1:
        listb.append(c)
        for x in range(0,d):
            a = a
            b += 1
            c = a/b
            listb.append(c)
print(lista)
print(listb)



"""
n = int(input("I will estimate pi. How many terms should I use? "))
decimals = int(input("How many decimal places should I use in the result? "))
pi = float(4*(sum([((-1.0)**k)/(2*k+1) for k in range(0,n)])))
print("The approximate value of pi is {0}".format(round(pi, decimals)))
"""
<commit_msg>Updated from Brython Server: 9/18/2016 12:21:57 PM<commit_after>"""
calculatepi.py
Author: <NAME>

This was an experiment for Math Modeling and Fractions

"""
import math
lista = []
listb = []
a = 0
b = 0
d = int(input("Largest Denominator?"))-1
for x in range(0,d):
    a += 1
    b = 1
    c = a/b
    if x == 0:
        lista.append(c)
        for y in range(0,d):
            a = a
            b += 1
            c = a/b
            lista.append(c)
    if x == 1:
        listb.append(c)
        for x in range(0,d):
            a = a
            b += 1
            c = a/b
            listb.append(c)
print(lista)
print(listb)



"""
n = int(input("I will estimate pi. How many terms should I use? "))
decimals = int(input("How many decimal places should I use in the result? "))
pi = float(4*(sum([((-1.0)**k)/(2*k+1) for k in range(0,n)])))
print("The approximate value of pi is {0}".format(round(pi, decimals)))
"""

{'fraction_non_alphanumeric': 0.15699281370923163, 'fraction_numerical': 0.027639579878385848, 'mean_word_length': 2.0267558528428093, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '72877', 'n_tokens_mistral': 688, 'n_tokens_neox': 660, 'n_words': 210}