<jupyter_start><jupyter_text>Mendefinisikan Fungsi<jupyter_code>def least_difference(a, b, c):
    diff1 = abs(a - b)
    diff2 = abs(b - c)
    diff3 = abs(a - c)
    return min(diff1, diff2, diff3)
def greet():
    print('Hello, Colion')

def greet(who="Colin"):
    print("Hello,", who)
greet()<jupyter_output>Hello, Colin<jupyter_text>Fungsi Lambda<jupyter_code>f = lambda x : x**x
f(3)
f = lambda a,b : a+b
f(2,4)<jupyter_output><empty_output><jupyter_text>Method<jupyter_code>huruf_kecil = 'huruf_kecil'
print(huruf_kecil.upper())
keluarga_ucup = ['mamah', 'papah', 'ucup', 'adek ucup', 'kaka ucup']
print(keluarga_ucup.index('ucup'))
# Definition of radius
r = 0.43

# Import the math package
import math
pi=math.pi 

# Calculate C
C = 2*pi*r 

# Calculate A
A = pi*r*r 

# Build printout
print("Circumference: " + str(C))
Circumference: 2.701769682087222

print("Area: " + str(A))
Area: 0.5808804816487527<jupyter_output>Circumference: 2.701769682087222
Area: 0.5808804816487527
{'fraction_non_alphanumeric': 0.15212981744421908, 'fraction_numerical': 0.08012170385395538, 'mean_word_length': 5.58, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '125362', 'license': 'MIT', 'n_tokens_mistral': 488, 'n_tokens_neox': 436, 'n_words': 82, 'path': 'Week 1/Day 2/Materi Hari 2.ipynb', 'repo_name': 'algonacci/Sanbercode_DataScience', 'size': '986'}