Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hobi = []
- stop = False
- i = 0
- # Mengisi hobi
- while(not stop):
- hobi_baru = raw_input("Inputkan hobi yang ke-{}: ".format(i))
- hobi.append(hobi_baru)
- # Increment i
- i += 1
- tanya = raw_input("Mau isi lagi? (y/t): ")
- if(tanya == "t"):
- stop = True
- # Cetak Semua Hobi
- print "=" * 10
- print "Kamu memiliki {} hobi".format(len(hobi))
- for hb in hobi:
- print "- {}".format(hb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement