#Lab1
## penggunaan end
print("====END====")
print('A', end='')
print('B', end='')
print('C', end='')
print()
print('X')  
print('Y')
print('Z')

## penggunaan seperator
print("====SEPERATOR====")
w, x, y, z = 10, 15, 20, 25
print(w, x, y, z)
print(w, x, y ,z, sep=',')
print(w, x, y ,z, sep='')
print(w, x, y ,z, sep=':')
print(w, x, y ,z, sep='-----')

## string format
print("====STRING FORMAT====")
print(0, 10**0)
print(1, 10**1)
print(2, 10**2)
print(3, 10**3)
print(4, 10**4)
print(5, 10**5)
print(6, 10**6)
print(7, 10**7)
print(8, 10**8)
print(9, 10**9)
print(9, 10**10)

## string format
print("====STRING FORMAT====")
print('{0:>3} {1:>16}'.format (0, 10**0))
print('{0:>3} {1:>16}'.format (0, 10**1))
print('{0:>3} {1:>16}'.format (0, 10**2))
print('{0:>3} {1:>16}'.format (0, 10**3))
print('{0:>3} {1:>16}'.format (0, 10**4))
print('{0:>3} {1:>16}'.format (0, 10**5))
print('{0:>3} {1:>16}'.format (0, 10**6))
print('{0:>3} {1:>16}'.format (0, 10**7))
print('{0:>3} {1:>16}'.format (0, 10**8))
print('{0:>3} {1:>16}'.format (0, 10**9))
print('{0:>3} {1:>16}'.format (0, 10**10))

#Lab2
print("====Lab2====")
a=input("masukkan nilai a:")
b=input("masukkan nilai b:")
print("variable a=",a)
print("variable b=",b)

##konversi nilai variable
a=int(a)
b=int(b)
print("hasil penggabungan {1}&{0}=%d".format(a,b) %(a+b))
print("hasil penjumlahan {1}+{0}=%d".format(a,b) %(a+b))
print("hasil pembagian {1}/{0}=%d".format(a,b) %(a/b))