Jorell_Ramos_Sinaga

Tugas ID Registrasi, Ramos

Aug 11th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. from datetime import datetime
  2.  
  3. Nama = input("Nama \t: ")
  4. NomorUrut = int(input("No. Urut: "))
  5.  
  6. waktu = datetime.now()
  7.  
  8. idSiswa = ("%s%02d%2d%03d-%s" % (waktu.year, waktu.month, waktu.day, NomorUrut, Nama[0]))
  9.  
  10. print("ID Siswa : ",idSiswa)
Advertisement
Add Comment
Please, Sign In to add comment