Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Joshua Salako",
"label": "Data Scientist",
"image":"https://www.gravatar.com/avatar/02d4fbd7a5cca7043fdccbae375e7bbf.png?s=400",
"summary": "I’m a Data Scientist. I'm generally very flexible when investigating new roles.",
"website": "https://ceptive.wordpress.com",
"email": "salakojoshua1234@gmail.com",
"location": {
@joshsalako
joshsalako / pi.py
Last active May 28, 2023 16:48
generating the values of pi to a known number of decimal places
def compute_pi(n):
"""
This function calculates the value of pi to 'n' number of decimal places
Args:
n: precision(Decimal places)
Returns:
pi: the value of pi to n-decimal places
"""
decimal.getcontext().prec = n + 3