Function - Return function

Run Settings
LanguagePython
Language Version
Run Command
import random def hadiah(angka_acak): if angka_acak == 1: return "Laptop" if angka_acak == 2: return "Tumbler" if angka_acak == 3: return "Card holder" return "Hadiah kosong" angka_acak = random.randint(1,3) print(hadiah(angka_acak))
Editor Settings
Theme
Key bindings
Full width
Lines