<jupyter_start><jupyter_text>Memulai Python<jupyter_code>print("Hello World!")
tinggi = 155
berat = 55.5
print(berat)
dataRibka = ["Tinggi",155,"Berat",55.5]
print(dataRibka)
tinggi = [180, 181, 182]
print(tinggi)
berat = [60, 70, 90]
print(berat)
berat / tinggi ** 2
pip install numpy
import numpy as np

np_tinggi = np.array(tinggi)
np_berat = np.array(berat)
np_tinggi
np_berat
berat_ideal = np_berat/np_tinggi ** 2
berat_ideal
type(np_tinggi)
type(tinggi)
pip install scipy<jupyter_output>Requirement already satisfied: scipy in /usr/local/lib/python3.7/dist-packages (1.4.1)
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.7/dist-packages (from scipy) (1.19.5)<jupyter_text>Instalasi library Pandas<jupyter_code>pip install pandas
import pandas as pd
Data = pd.read_csv("Tab.csv")
Data
Data["Negara"]<jupyter_output><empty_output><jupyter_text>Instalasi Library MATPLOTLIB<jupyter_code>pip install matplotlib
import matplotlib.pyplot as plt
tahun = [1980, 1990, 2000, 2010, 2020]
penduduk = [1200, 1500, 1300, 2000, 2500]
#plt.plot(tahun,penduduk)
#plt.scatter(tahun,penduduk)
plt.bar(tahun,penduduk)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13088109495295125, 'fraction_numerical': 0.0718562874251497, 'mean_word_length': 7.068965517241379, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 13, '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': '86792', 'license': 'MIT', 'n_tokens_mistral': 560, 'n_tokens_neox': 478, 'n_words': 97, 'path': 'Pertemuan 4/Pengenalan_Python.ipynb', 'repo_name': 'ribkatesalonika/metdata-science', 'size': '1169'}