Fakultas Ilmu Komputer UI

Lab2_1_3_RulyAchmadGemilangGultom_1906399915.py 157 Bytes
Newer Older
Ruly Achmad Gemilang Gultom's avatar
Ruly Achmad Gemilang Gultom committed
1
2
3
4
5
6
7
8
9
10
11
nama = input("tuliskan sebuah nama: ")
spasi =  nama.replace(" ","")
counter = 0

for i in spasi:
    counter += 1

print("ada",counter,"tanpa spasi")