Old to new NIC converter

Dasunx

Active member
  • Jul 7, 2020
    200
    234
    43
    dasunx.com
    Python:
    nic = input("Old nic number\n")
    print(f"{'20' if int(nic[:2]) < 20 else '19'}{nic[:2]}{nic[2:5]}0{nic[5:]}")

    මේ පය්තන් code එක රන් කරලා පරණ nic එක දාන්න v අකුර නැතුව.

    https://repl.it/@Dasunx/oldtonew
    මේ සයිට් එකෙනුත් රන් වෙනවා
     
    • Like
    Reactions: pra52

    pra52

    Active member
  • Nov 24, 2007
    745
    171
    43
    Python:
    nic = input("Old nic number\n")
    print(f"{'20' if int(nic[:2]) < 20 else '19'}{nic[:2]}{nic[2:5]}0{nic[5:]}")

    මේ පය්තන් code එක රන් කරලා පරණ nic එක දාන්න v අකුර නැතුව.

    https://repl.it/@Dasunx/oldtonew
    මේ සයිට් එකෙනුත් රන් වෙනවා

    Thanks bro, appreciated