Kumpulan referensi fungsi dan konsep Python dalam bahasa Indonesia. Setiap halaman berisi sintaks, contoh yang bisa langsung dijalankan di IDE online, dan kesalahan umum.
Dasar-Dasar
String
- f-string
- format()
- len()
- Slicing String
- upper() dan lower()
- title() dan capitalize()
- strip()
- lstrip() dan rstrip()
- replace()
- split()
- splitlines()
- join()
- find()
- index() String
- count()
- startswith() dan endswith()
- isdigit()
- isalpha()
- isupper() dan islower()
- center(), ljust(), rjust()
- zfill()
- str.encode()
- str.expandtabs()
- str.format_map()
- str.isascii()
- str.isdecimal()
- str.isidentifier()
- str.isnumeric()
- str.isprintable()
- str.isspace()
- str.istitle()
- str.ljust()
- str.rjust()
- str.maketrans()
- str.partition()
- str.rpartition()
- str.rfind()
- str.rindex()
- str.rsplit()
- str.translate()
- ord()
- chr()
Percabangan & Perulangan
List & Tuple
Dictionary & Set
- Dictionary
- get() Dictionary
- keys()
- values()
- items()
- update()
- pop() Dictionary
- clear() Dictionary
- copy() Dictionary
- fromkeys()
- setdefault()
- Dict Comprehension
- Set
- add()
- remove() dan discard()
- union(), intersection(), difference()
- set.clear()
- set.copy()
- set.difference_update()
- set.intersection_update()
- set.isdisjoint()
- set.issubset()
- set.issuperset()
- set.pop()
- set.symmetric_difference()
- set.symmetric_difference_update()
- set.update()
Fungsi
Fungsi Bawaan
- map()
- filter()
- reversed()
- any()
- all()
- isinstance()
- id()
- help()
- dir()
- eval()
- ascii()
- bin()
- bytearray()
- bytes()
- callable()
- classmethod()
- compile()
- complex()
- delattr()
- exec()
- frozenset()
- getattr()
- globals()
- hasattr()
- hash()
- hex()
- issubclass()
- iter()
- locals()
- memoryview()
- next()
- object()
- oct()
- property()
- repr()
- setattr()
- slice()
- staticmethod()
- super()
- vars()
File & Error
Modul math
- Modul math
- math.sqrt()
- math.ceil() dan math.floor()
- math.pow()
- math.factorial()
- math.gcd()
- math.pi
- math.trunc()
- math.fsum()
- math.log()
- math.log10()
- math.exp()
- math.degrees()
- math.radians()
- math.sin()
- math.cos()
- math.tan()
- math.acos()
- math.asin()
- math.atan()
- math.atan2()
- math.comb()
- math.perm()
- math.copysign()
- math.dist()
- math.erf()
- math.expm1()
- math.fmod()
- math.frexp()
- math.hypot()
- math.inf
- math.isclose()
- math.isfinite()
- math.isinf()
- math.isnan()
- math.lcm()
- math.ldexp()
- math.log1p()
- math.log2()
- math.modf()
- math.nan
- math.remainder()
- math.tau
Modul random
- Modul random
- random.randint()
- random.random()
- random.choice()
- random.shuffle()
- random.randrange()
- random.uniform()
- random.sample()
- random.choices()
- random.seed()
- random.betavariate()
- random.expovariate()
- random.gauss()
- random.getrandbits()
- random.getstate()
- random.setstate()
- random.normalvariate()
- random.paretovariate()
- random.triangular()
- random.vonmisesvariate()
- random.weibullvariate()
