Fakultas Ilmu Komputer UI

Lab2_2_1_RulyAchmadGemilangGultom_1906399915.py 193 Bytes
Newer Older
Ruly Achmad Gemilang Gultom's avatar
Ruly Achmad Gemilang Gultom committed
1
2
3
4
5
6
7
nama1 = input("masukkan nama 1: ")
nama2 = input("masukkan nama 2: ")

if nama2 in nama1:
    print("ada","'",nama2,"' di '",nama1,"'")
else:
    print("tidak ada","'",nama2,"' di '",nama1,"'")