<jupyter_start><jupyter_text>Python Tutorial 0 <NAME>  What is Python?  Interpreted,  Object-Oriented  Why Python?  2nd Best Language for everything * Web* Scientific computation* Statistics* Data Science* Game* Education* Computer Vision  Ecosystem  Batteries Included  Python Code<jupyter_code>print("Hello World")
3**128
3**0.5, 3/2
def isqrt(n):    
    x, y = n+1, n
    while y < x:
        x, y = y, (y + n // y) // 2
    return x
print(isqrt(99))
def isqrt(n):
    def f(a, b):
        return f(b, (b+n//b)//2) if b < a else a
    return f(n+1, n)
%%timeit
for i in range(1, 10**5):
    r = isqrt(i)
    assert r**2<=i and (r+1)**2 >= i
def is_prime(n):
    r = isqrt(n)
    for i in range(2, r+1):
        if n%i == 0:
            return False
    return True
primes = [n for n in range(2,100) if is_prime(n)]
print(primes)
print(len(primes))
def is_prime(n):
    r = isqrt(n)
    return all(n%i !=0 for i in range(2, r+1))
primes2 = [n for n in range(2,100) if is_prime(n)]
print(primes == primes2)
!git clone https://github.com/tjwei/PythonTutorial<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15059687786960516, 'fraction_numerical': 0.03673094582185491, 'mean_word_length': 3.1603053435114505, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '433182', 'license': 'MIT', 'n_tokens_mistral': 459, 'n_tokens_neox': 434, 'n_words': 134, 'path': 'Tutorial 0.ipynb', 'repo_name': 'tjwei/PythonTutorial', 'size': '1095'}