test

mail@pastecode.io avatar
unknown
plain_text
6 months ago
879 B
13
Indexable
Never
    #variabel]
NamaSaya ="andre julianda"
Asalkota ="bengkulu"
Prodi ="informatika"
    
print(NamaSaya)
print(Asalkota)
print(Prodi)
    
    # TIPE DATA 
    # String, Integer, Float, Boolean, List, Tuple, Dict
    
    # String

    #Integer 1, 2, 9999
    #Float
    #1.2.3.6
    #Boleean
    #0, 1 Atau True   dan False
    
Asalkota = "Jogja"
Variabel_1 = 10000 # Integer
Float = 8.5 #Float
Boolean = True,False, 0 , 1
    
data_list = ["avanza", 58766, 8.7, True] #list
Tuple =("Avanza")

# key
# Value/nilai
dict = {"Nim" :528679, "NAMA":'andre julianda'} #Dictonoiry

Bilangan =[1, 2, 3,4 ,5]
bilangan_1 = 10
bilangan_2 = 20
hasil_1 = bilangan_1 + bilangan_2
hasil_2 = bilangan_1 * bilangan_2
hasil_3 = bilangan_1 / bilangan_2
hasil_4 = bilangan_1 - bilangan_2

print(hasil_1)
print(hasil_2)
print(hasil_3)
print(hasil_4)